Skip to content

Instantly share code, notes, and snippets.

@marcusgadbem
Created October 11, 2014 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marcusgadbem/06d891185abde59e277a to your computer and use it in GitHub Desktop.
Save marcusgadbem/06d891185abde59e277a to your computer and use it in GitHub Desktop.
unicorn in development
# 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
# Running server:
$ RACK_ENV=none RAILS_ENV=development unicorn -c config/unicorn-dev.rb
# 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