8

我尝试按照此处的说明在 Heroku 的 Cedar 堆栈上创建一个静态网站。

我已经把网站放在这里了

当我尝试推送应用程序(使用“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 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'

任何帮助是极大的赞赏。我在最新的 ruby​​/rack/heroku

4

2 回答 2

16

说明适用于安装了 Rack 的 Bamboo stack - Cedar stack 完全是空的,因此您需要安装机架。

您需要添加一个 Gemfile

source :rubygems

gem 'rack'

bundle然后将 Gemfile 和 Gemfile.lock 添加到 git 并重新推送。

于 2012-02-05T09:18:26.170 回答
0

这些说明适用于 Bamboo 堆栈。

cedar 堆栈需要一个Procfile才能识别如何运行您的应用程序。

在你的 Procfile 中这样的东西应该可以解决问题 - 假设你使用的是瘦:

web: bundle exec thin start -p $PORT -e $RACK_ENV
于 2012-02-05T08:40:21.387 回答