Heroku Cedar 上的静态网站
我尝试按照此处的说明在 Heroku 上创建静态网站雪松栈。
我已将网站放在此处。
当我尝试推送应用程序(使用“git push heroku master”)时,出现以下错误:
Kushs-MacBook-Air:hgtr kushpatel$ git push heroku master
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 1.29 KiB, done.
Total 7 (delta 1), reused 0 (delta 0)
-----> Heroku receiving push
-----> Removing .DS_Store files
! Heroku push rejected, no Cedar-supported app detected
To [email protected]:gentle-warrior-1301.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:gentle-warrior-1301.git'
非常感谢任何帮助。我使用的是最新的 ruby/rack/heroku
I tried following the instructions here in order to create a static website on Heroku's Cedar stack.
I have put the site up here.
When I try to push the app (using "git push heroku master"), I get the following error:
Kushs-MacBook-Air:hgtr kushpatel$ git push heroku master
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 1.29 KiB, done.
Total 7 (delta 1), reused 0 (delta 0)
-----> Heroku receiving push
-----> Removing .DS_Store files
! Heroku push rejected, no Cedar-supported app detected
To [email protected]:gentle-warrior-1301.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:gentle-warrior-1301.git'
Any help is greatly appreciated. I am on the latest ruby/rack/heroku
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该说明适用于已安装机架的竹堆 - 雪松堆完全是空的,因此您需要安装机架。
您需要添加一个 Gemfile 并
bundle
它,然后将 Gemfile 和 Gemfile.lock 添加到 git 并重新推送。The instructions are for Bamboo stack which would have had Rack installed - the Cedar stack is entirely empty so you need to have rack installed.
You need to add a Gemfile with
bundle
it and then add the Gemfile and Gemfile.lock to git and repush.这些说明适用于 Bamboo 堆栈。
cedar 堆栈需要一个 Procfile 才能确定如何运行您的应用程序。
你的 Procfile 中类似的东西应该可以解决问题 - 假设你使用的是 slim:
Those instructions are for the Bamboo stack.
The cedar stack needs a Procfile to be able to identify how to run your app.
Something like this in your Procfile should do the trick - assuming you're using thin: