在Sinatra Heroku应用程序中没有Cedar支持应用程序检测到错误

时间:2012-01-11 07:38:05

标签: ruby heroku sinatra cedar

当我推送到Heroku时,似乎一切正常,如下所示。然后我在跟随Heroku的文档时遇到后者的错误:http://devcenter.heroku.com/articles/ruby#install_the_heroku_commandline_client

-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Ruby app detected
-----> Installing dependencies using Bundler version 1.1.rc.7
       Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
       Fetching gem metadata from http://rubygems.org/.....
       Installing rack (1.4.0)
       Installing tilt (1.3.3)
       Installing sinatra (1.1.0)
       Using bundler (1.1.rc.7)
       Your bundle is complete! It was installed into ./vendor/bundle
       Cleaning up the bundler cache.
-----> Discovering process types
       Procfile declares types -> (none)
       Default types for Ruby  -> console, rake
-----> Compiled slug size is 16.3MB
-----> Launching... done, v4
       http://cold-mountain-8923.herokuapp.com deployed to Heroku

使用heroku.logs我得到:

2012-01-11T06:36:43+00:00 heroku[slugc]: Slug compilation started
2012-01-11T06:36:43+00:00 heroku[slugc]: Slug compilation failed: no Cedar-supported app detected
2012-01-11T06:47:20+00:00 heroku[slugc]: Slug compilation started
2012-01-11T06:47:22+00:00 heroku[slugc]: Slug compilation failed: failed to compile Ruby app
2012-01-11T06:52:21+00:00 heroku[slugc]: Slug compilation started

当Gemfile和Procfile都在那里时,怎么没有检测到Cedar-support? 此外,heroku网页上没有任何内容。

2 个答案:

答案 0 :(得分:1)

对我来说很好用 - 仔细检查你的Procfile是否是最新的Heroku。这是我推送的输出:

Counting objects: 46, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (28/28), done.
Writing objects: 100% (46/46), 15.23 MiB | 774 KiB/s, done.
Total 46 (delta 11), reused 46 (delta 11)

-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Ruby/Rack app detected
-----> Installing dependencies using Bundler version 1.1.rc.7
       Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
       Fetching gem metadata from http://rubygems.org/.....
       Installing rack (1.4.0)
       Installing rack-protection (1.2.0)
       Installing tilt (1.3.3)
       Installing sinatra (1.3.2)
       Using bundler (1.1.rc.7)
       Your bundle is complete! It was installed into ./vendor/bundle
       Cleaning up the bundler cache.
-----> Discovering process types
       Procfile declares types     -> web
       Default types for Ruby/Rack -> console, rake
-----> Compiled slug size is 16.5MB
-----> Launching... done, v4
       http://growing-dawn-4276.herokuapp.com deployed to Heroku

To git@heroku.com:growing-dawn-4276.git
 * [new branch]      master -> master

答案 1 :(得分:0)

我在Github上克隆了我的应用程序,删除了我的原始Heroku应用程序,并创建了一个新应用程序。现在我跑了!我的结论是原始Heroku应用程序是在我进行所有新更改之前创建的,并且提交只是没有得到更新或以某种方式正确推送。通过创建一个新的应用程序,我不会丢失任何东西,因为代码是相同的,Heroku允许丰富的应用程序创建。我怀疑这与我没有考虑过的git远程问题有关。