似乎一切工作正常,當我推到Heroku如下所示。然後,我對後者碰上一個錯誤,而下面的Heroku的文檔:http://devcenter.heroku.com/articles/ruby#install_the_heroku_commandline_client沒有雪松支持的應用程序在Sinatra Heroku應用程序中檢測到錯誤
-----> 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沒有檢測到雪松支持在那裏? 此外,heroku網頁上沒有任何內容。
我
你的Procfile的內容是什麼? – 2012-01-11 07:57:45
web:play run --http.port = $ PORT $ PLAY_OPTS – Tony 2012-01-11 19:45:16
剛剛改成:'web:bundle exec ruby sinatra.rb -p $ PORT' – Tony 2012-01-11 20:08:20