我尝试按照说明进行操作here http://devcenter.heroku.com/articles/static-sites-on-heroku为了在 Heroku 的 Cedar 堆栈上创建一个静态网站。
我已经把网站放上来了here https://github.com/kushpatel72/hgtr.
当我尝试推送应用程序(使用“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] /cdn-cgi/l/email-protection:gentle-warrior-1301.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected] /cdn-cgi/l/email-protection:gentle-warrior-1301.git'
任何帮助是极大的赞赏。我使用的是最新的 ruby/rack/heroku
该说明适用于已安装机架的竹堆 - 雪松堆完全是空的,因此您需要安装机架。
您需要添加一个 Gemfile
source :rubygems
gem 'rack'
bundle
然后将 Gemfile 和 Gemfile.lock 添加到 git 并重新推送。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)