Skip to content

Instantly share code, notes, and snippets.

@kazuph
Created April 14, 2014 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazuph/10627179 to your computer and use it in GitHub Desktop.
Save kazuph/10627179 to your computer and use it in GitHub Desktop.
Railsを本番稼働させるときはnginxとsession storeの設定に注意 ref: http://qiita.com/kazuph/items/feb135cda2c6ece24574
upstream sent too big header while reading response header from upstream
ActionDispatch::Cookies::CookieOverflow
$ bundle install
$ rails g active_record:session_migration
$ rake db:migrate
※本番リリース時はRAILS_ENV=productionをつける
+gem 'activerecord-session_store'
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
-YourAppName::Application.config.session_store :cookie_store, key: '_your_app_name_session'
+YourAppName::Application.config.session_store :active_record_store, key: '_your_app_name_session'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment