Skip to content

Instantly share code, notes, and snippets.

@gullitmiranda
Forked from marcusgadbem/development.rb
Last active August 29, 2015 14:08
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 gullitmiranda/4f11cb1bc140a3a5743d to your computer and use it in GitHub Desktop.
Save gullitmiranda/4f11cb1bc140a3a5743d to your computer and use it in GitHub Desktop.
# 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