2012-11-22 45 views
2

我triying到3.2.8應用程序部署我導軌的Heroku和我得到這個錯誤的所有時間:的Rails 3.2.8和Heroku上,引發應用程序錯誤

2012-11-22T13:26:30+00:00 app[web.1]: Exiting 
2012-11-22T13:26:30+00:00 app[web.1]: => Booting WEBrick 
2012-11-22T13:26:30+00:00 app[web.1]: => Call with -d to detach 
2012-11-22T13:26:30+00:00 app[web.1]: => Rails 3.2.8 application starting in production on http://0.0.0.0:24003 
2012-11-22T13:26:31+00:00 heroku[web.1]: Process exited with status 1 
2012-11-22T13:26:31+00:00 heroku[web.1]: State changed from starting to crashed 
2012-11-22T13:26:49+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=facevid.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes= 
2012-11-22T13:26:49+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=facevid.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes= 

這似乎是一個所以我嘗試在本地進行預編譯,更改應用程序變量config.assets.initialize_on_precompile = false,同時更改環境變量config.serve_static_assets = true

我在本地環境下將bundle安裝爲生產環境,並使用webrick啓動生產環境且沒有錯誤。

編輯:

我會添加我的Gemfile

source 'https://rubygems.org' 
ruby '1.9.3' 
gem 'heroku' 
gem 'rails', '3.2.8' 

# Bundle edge Rails instead: 
# gem 'rails', :git => 'git://github.com/rails/rails.git' 

# Database gem 
# gem 'sqlite3' 
group :development, :test do 
    gem 'mysql2' 
end 

# heroku needs 
gem 'pg', :group => :production 
gem 'heroku', :group => :production 
gem 'thin', :group => :production 

# Gems used only for assets and not required 
# in production environments by default. 
group :assets do 
    gem 'sass-rails', '~> 3.2.3' 
    gem 'coffee-rails', '~> 3.2.1' 

    # See https://github.com/sstephenson/execjs#readme for more supported runtimes 
    # gem 'therubyracer', :platforms => :ruby 
    gem "therubyracer" 
    gem "less-rails" 
    gem 'twitter-bootstrap-rails' 

    gem 'uglifier', '>= 1.0.3' 
end 

gem 'jquery-rails' 

# Authentication gems 
gem 'omniauth-facebook' 
gem 'devise' 
gem "koala" 

我還創建了軌道的supersimple例子3.2.8應用程序推送到Heroku的和我得到同樣的錯誤,的代碼這個應用程序在這裏https://github.com/andresbravog/heroku-rails-3.2.8-test

+0

在Heroku的日誌中是否有任何內容? – Matt

+0

擊中'heroku log'並查看webrick爆炸的位置。 Heroku對資產編譯的寬容度低於本地設置 –

+0

如果我運行「heroku日誌」,則不能使用heroku日誌,我將得到我所顯示的內容。有更多的日誌會很好,但我不知道如何得到它。 – andresbravog

回答

0

好的我會回答自己:我需要添加config.ru文件到我的回購應用程序,以使用瘦。

希望它有幫助

+0

我面臨同樣的問題你是什麼意思回購應用程序請解釋一點 –