当我尝试将我的应用推送到Heroku时,我一直收到此错误:
git push heroku master
Counting objects: 14, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (14/14), 3.18 KiB | 0 bytes/s, done.
Total 14 (delta 11), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote: -----> Meteor version: Meteor 1.4.0.1
remote: -----> Checking if this meteor version supports --server-only
remote: cp: cannot stat ‘/app/tmp/cache/1.3.4.1/.meteor/packages/meteortool/.1.3.4_1.tskw1g++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node\n/app/tmp/cache/1.3.4.1/.meteor/packages/meteor-tool/.1.4.0-1.1lf30np++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node’: No such file or directory
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to [name-of-app].
问题是什么?就在几个小时前,我设法推进没有任何错误。
答案 0 :(得分:4)
运行此功能对我有用:
heroku config:set BUILDPACK_CLEAR_CACHE=1
它强制heroku再次下载流星并覆盖自动更新的版本1.4。如果您正在使用马建筑物检查问题如何演变:https://github.com/AdmitHub/meteor-buildpack-horse/issues/132
答案 1 :(得分:1)
您需要清除之前构建的缓存,因为您必须安装 Heroku Repo插件
heroku plugins:install heroku-repo
并通过运行repo:purge_cache清除您的应用缓存。 如果您有多个应用,请不要忘记指定 appname
heroku repo:purge_cache
然后你可以推送你的代码
git push heroku master
答案 2 :(得分:0)
问题实际上是流星版本不匹配。我不得不升级到流星1.4,它提出了自己的问题。如果您在更新到1.4时遇到问题,可以查看this thread