LoginSignup
3
3

More than 1 year has passed since last update.

Rails3.1をHerokuにデプロイする際の変更個所

Last updated at Posted at 2012-09-19

ローカルでは問題なく動いていたRailsアプリがHerokuでなぜか動かない!という時のチェックポイント等。というか作業メモです。

確認環境

  • Rails 3.2.6
  • Heroku Cedar Stack

変更点

# Production用のgemを追加
group :production do
  gem 'pg'
  gem 'thin'
end
config/environments/production.rb
# logの出力先を標準出力に変更(不要?)
config.logger = Logger.new(STDOUT)
config/application.rb
#以下の行を追加
config.assets.initialize_on_precompile = false

このあたりはちょっと僕も何が正解なのか確信がありません。
何か問題が起きたら、Herokuのトラブルシューティングページをしっかり読むことをオススメします。

3
3
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3