Heroku雪松的静态网站 [英] Static website on Heroku Cedar
问题描述
我尝试按照此处的指示操作,以创建静态Heroku的雪松堆栈网站。
我已将该网站置于此处。
当我尝试推送应用程序时(使用git push heroku master),我得到以下错误:
Kushs-MacBook-Air:hgtr kushpatel $ git push heroku master
计数对象:7,完成。
使用多达4个线程的增量压缩。
压缩对象:100%(7/7),完成。
写作对象:100%(7/7),1.29 KiB,完成。
合计7(增量1),重用0(增量0)
-----> Heroku接收推送
----->删除.DS_Store文件
! Heroku推拒绝,没有雪松支持的应用程序检测到
到git@heroku.com:温和的战士-1301.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:未能将某些参考文献推送到'git@heroku.com:gentle-warrior-1301.git'
非常感谢任何帮助。我正在使用最新的ruby / rack / heroku
这些说明适用于已安装Rack的Bamboo Stack - 雪松
您需要添加一个Gemfile文件
<$ p $来源:rubygems
gem'rack'
<然后将Gemfile和Gemfile.lock添加到git中并重新创建。
>
bundle
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 git@heroku.com:gentle-warrior-1301.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:gentle-warrior-1301.git'
Any help is greatly appreciated. I am on the latest ruby/rack/heroku
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
source :rubygems
gem 'rack'
bundle
it and then add the Gemfile and Gemfile.lock to git and repush.
这篇关于Heroku雪松的静态网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!