2012-01-11 64 views
1

似乎一切工作正常,當我推到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網頁上沒有任何內容。

+0

你的Procfile的內容是什麼? – 2012-01-11 07:57:45

+0

web:play run --http.port = $ PORT $ PLAY_OPTS – Tony 2012-01-11 19:45:16

+0

剛剛改成:'web:bundle exec ruby​​ sinatra.rb -p $ PORT' – Tony 2012-01-11 20:08:20

回答

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 [email protected]:growing-dawn-4276.git 
* [new branch]  master -> master 
+2

感謝布蘭登!事實上,知道它爲你工作只是給了我一個解決方案。我在Github上克隆了我的應用程序,刪除了我原來的heroku應用程序,並創建了一個新應用程序。現在我運行了! – Tony 2012-01-12 01:09:58

+0

@Tony你說什麼都有,除了一個你的兩個(相同的)應用程序之間沒有區別運行正常,一個沒有? – courtsimas 2012-05-23 14:05:58

0

我克隆我的應用程序在Github上,刪除了我原來的Heroku的應用程序,並創建一個新的。現在我運行了!我的結論是,在我所做的所有的新變化,原來的Heroku應用程序的創建,並承諾只是並沒有獲得更新或推正確莫名其妙。通過創建一個新的應用程序,我不會因爲代碼相同而丟失任何東西,而且Heroku允許創建豐富的應用程序。我懷疑這與我沒有考慮到的git遠程問題有關。

相關問題