您好,有Stack Overflow社区
我实际上遇到了一个问题,因为我找到了一些话题,但是没有一个能帮到我,所以我在这里问,希望好运!
我实际上是在使用Gitlab CI来将meteorJS应用程序部署到heroku,以防万一需要测试。一切在gitlab上都可以正常运行,也许,我在heroku上收到此错误:
/ bin / sh:1:流星:未找到
这是完整的日志:
bash
2018-12-09T19:38:14.656328+00:00 app[api]: Set METEOR_SETTINGS config vars by user xxxxx.xxxxxxx@gmail.com
2018-12-09T19:38:15.953765+00:00 heroku[web.1]: State changed from crashed to starting
2018-12-09T19:38:30.743460+00:00 heroku[web.1]: Starting process with command `/bin/sh -c meteor\ npm\ install\ \&\&\ meteor\ -s\ settings.json`
2018-12-09T19:38:33.590796+00:00 heroku[web.1]: State changed from starting to crashed
2018-12-09T19:38:33.570393+00:00 heroku[web.1]: Process exited with status 127
2018-12-09T19:38:33.497325+00:00 app[web.1]: /bin/sh: 1: meteor: not found
2018-12-09T19:38:34.200973+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=twiice-production.herokuapp.com request_id=8bb6dd7e-a7a8-4d91-8333-fcebc61fa41e fwd="90.29.71.202" dyno= connect= service= status=503 bytes= protocol=https
2018-12-09T19:38:34.729142+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=twiice-production.herokuapp.com request_id=f7a0a7b0-6928-461a-a245-733dff3ff7e6 fwd="90.29.71.202" dyno= connect= service= status=503 bytes= protocol=https
2018-12-09T19:38:42.656886+00:00 heroku[web.1]: State changed from crashed to starting
2018-12-09T19:38:57.524320+00:00 heroku[web.1]: Starting process with command `/bin/sh -c meteor\ npm\ install\ \&\&\ meteor\ -s\ settings.json`
2018-12-09T19:39:00.040931+00:00 heroku[web.1]: State changed from starting to crashed
2018-12-09T19:39:00.021846+00:00 heroku[web.1]: Process exited with status 127
2018-12-09T19:38:59.954125+00:00 app[web.1]: /bin/sh: 1: meteor: not found
我的项目根目录下有这个 heroku.yml 文件:
setup:
addons:
- plan: 'mongolab:sandbox'
as: MONGODB
config: {}
build:
languages:
- nodejs
pre:
- curl https://install.meteor.com/ | sh
run:
web: meteor npm install && meteor -s settings.json
我尝试了很多事情,但实际上不知道该怎么做。有人看到任何问题吗?
非常感谢!