Created
April 14, 2014 08:19
-
-
Save kazuph/10627179 to your computer and use it in GitHub Desktop.
Railsを本番稼働させるときはnginxとsession storeの設定に注意 ref: http://qiita.com/kazuph/items/feb135cda2c6ece24574
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream sent too big header while reading response header from upstream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActionDispatch::Cookies::CookieOverflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bundle install | |
$ rails g active_record:session_migration | |
$ rake db:migrate | |
※本番リリース時はRAILS_ENV=productionをつける |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+gem 'activerecord-session_store' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxy_buffer_size 128k; | |
proxy_buffers 4 256k; | |
proxy_busy_buffers_size 256k; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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