Created
October 11, 2014 20:50
-
-
Save marcusgadbem/06d891185abde59e277a to your computer and use it in GitHub Desktop.
unicorn in development
This file contains hidden or 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
# config/environments/development.rb | |
MyApp::Application.configure do | |
# Tell Rails to log to STDOUT instead Rails::Rack::LogTailer | |
config.logger = Logger.new(STDOUT) | |
config.logger.level = Logger.const_get( | |
ENV['LOG_LEVEL'] ? ENV['LOG_LEVEL'].upcase : 'DEBUG' | |
) | |
end |
This file contains hidden or 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
# Running server: | |
$ RACK_ENV=none RAILS_ENV=development unicorn -c config/unicorn-dev.rb |
This file contains hidden or 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
# config/unicorn-dev.rb | |
worker_processes 2 | |
listen 3000 | |
timeout 30 | |
preload_app false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment