2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rails3.2.14で本番デプロイ時に確認したこと

Posted at

準備

be rake db:create RAILS_ENV=production
be rake db:migrate RAILS_ENV=production
be rake assets:precompile RAILS_ENV=production && be rails s -e production

と準備する訳ですが

何度もサーバーを再起動することが予想されたので

assets:precompile の速度を改善する
より

Gemfile

group :assets do
  ...
  gem 'turbo-sprockets-rails3'
end

を導入しました。

assetsの名前解決

サーバーログにActionController::RoutingErrorエラーが出たので

Rails 3.2のproduction環境でisn't precompiledと出る場合の対処より

config/environments/production.rb

config.serve_static_assets = true

してサーバー再起動

動きました。
ひとまず終わりです。

2
2
0

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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?