突然无法再部署heroku应用程序
在 Heroku 上成功安装我的应用程序一个月后,一切都停止了。没有重大变化。谷歌对我的观察几乎保持沉默。任何帮助表示赞赏。
信息
heroku info === happyapp Web URL: http://happyapp.herokuapp.com/ Git Repo: [email protected]:fitwit.git Dynos: 0 Workers: 0 Repo size: 49M Slug size: 84M Stack: cedar Data size: (empty) Addons: Basic Logging, MongoHQ MongoHQ Free, Basic Release Management, Shared Database 5MB Owner: [email protected]
结果
%git push heroku master Counting objects: 477, done. Delta compression using up to 2 threads. Compressing objects: 100% (205/205), done. Writing objects: 100% (367/367), 104.57 KiB, done. Total 367 (delta 235), reused 223 (delta 145) -----> Heroku receiving push ! Heroku push rejected, no Cedar-supported app detected To [email protected]:happyapp.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to '[email protected]:happyapp.git'
还有其他故障排除选项吗?
蒂姆
After a month of successfully getting my app on Heroku, everything stopped working. No major changes. Google was mostly silent from my observations. Any help appreciated.
the info
heroku info === happyapp Web URL: http://happyapp.herokuapp.com/ Git Repo: [email protected]:fitwit.git Dynos: 0 Workers: 0 Repo size: 49M Slug size: 84M Stack: cedar Data size: (empty) Addons: Basic Logging, MongoHQ MongoHQ Free, Basic Release Management, Shared Database 5MB Owner: [email protected]
the result
%git push heroku master Counting objects: 477, done. Delta compression using up to 2 threads. Compressing objects: 100% (205/205), done. Writing objects: 100% (367/367), 104.57 KiB, done. Total 367 (delta 235), reused 223 (delta 145) -----> Heroku receiving push ! Heroku push rejected, no Cedar-supported app detected To [email protected]:happyapp.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to '[email protected]:happyapp.git'
Any other troubleshooting options?
Tim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否完全添加了要提交的所有文件?我发现当我发生这种情况时,是因为我推送的提交没有完成。
运行“git status”以查看是否有文件未添加到提交中,然后运行“git add”。包括最后的句号。更彻底的添加是“git add -A”以包含已删除的文件。
照常进行此提交并推送,看看这是否可以解决问题。
这对我有用。
Did you fully add all files to be committed? I found that when this happened to me, it was because the commit I was pushing was not complete.
Run 'git status' to see if there are files not added to the commit, then run 'git add .' including the full stop at the end. A more thorough add would be 'git add -A' to include deleted files.
Following this commit and push as usual and see if this fixes the issue.
This worked for me.
Heroku 支持的回复:
我的应用程序放在存储库根目录中为我解决了这个问题。
我已经为同样的问题苦苦挣扎了两天 - 也许我的一些发现可以提供帮助?
这篇文章指出:
我的应用程序肯定有一个 Gemfile,所以我转向其中的内容,并确保 Gemfile 包含:
我还读到 Cedar 堆栈仅支持 Postgres,所以我添加了:
我对 Rails、GIT 和 Heroku 完全陌生,所以我可能有其他完全错误的东西......
我的应用程序是:
Ruby 版本 1.8.7
Rails 版本 3.1.0
我很确定应该可以在 Cedar 上运行
The response from Heroku support:
Putting my app in the repo root solved this problem for me.
I've been struggling with the same issue for 2 days now - perhaps some of my findings can help?
This article states:
My App certainly has a Gemfile, so I turned to the contents thereof, and ensured that the Gemfile contained:
I also read that the Cedar stack only supports Postgres, so I added:
I'm completely new to Rails, GIT and Heroku, So I may have something else completely wrong...
My app is:
Ruby version 1.8.7
Rails version 3.1.0
Which I'm pretty sure is supposed to work on Cedar