你好Stack Overflow社区,

我实际上面临着一个问题,我发现了一些主题,但没有一个能帮助我,所以我在这里问,希望有更好的运气!

我实际上正在使用Gitlab CI将meteorJS应用程序部署到heroku,以防万一当然需要测试 . 一切都在gitlab上完美运行,也许,我在heroku上遇到这个错误:

/bin/sh: 1: meteor: not found

这是完整的日志:

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.json2018-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.json2018-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

我尝试了很多东西,但实际上不知道该怎么做 . 有没有人看到任何问题?

非常感谢 !