node.js - Heroku:无法启动meteor.js项目
问题描述
你好 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
我尝试了很多事情,但实际上不知道该做什么。有没有人看到任何问题?
非常感谢 !
解决方案
推荐阅读
- hive - 如何使用 Zookeeper 从 Beeline 获取 hive 实例详细信息
- c# - 为什么我在 AndroidJavaClass 中找不到 class not found 异常?
- hmac - 在 IBM J9 上与空键一起使用时来自 Mac.init() 的 InvalidKeyException
- mysql - 从 pandas 数据帧到 mysql db 毫秒的日期时间
- angular - AspNetBoilerplate:前端的服务器端枚举使用(角度)?
- java - 尝试检测自创的死锁
- c# - .NET Core for Linux with dockers - 创建 docker 镜像
- electron - 在 electronjs 应用启动时通过 sequelize 初始化数据库
- background - 当应用程序进入前台时,OpenTok 发布者的视图变黑
- excel - Excel VBA 2 输入文件,每个文件都以不同的格式打开和复制,而不是相同的格式