Skip to content

Instantly share code, notes, and snippets.

@phlco
Last active December 21, 2015 08:08
Show Gist options
  • Save phlco/6275823 to your computer and use it in GitHub Desktop.
Save phlco/6275823 to your computer and use it in GitHub Desktop.
puma config file
# ./Procfile
web: bundle exec puma -p $PORT -C ./config/puma.rb
# ./config/puma.rb
environment ENV['RACK_ENV']
threads 0,5
workers 3
preload_app!
on_worker_boot do
ActiveSupport.on_load(:active_record) do
ActiveRecord::Base.establish_connection
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment