Skip to content

Instantly share code, notes, and snippets.

@dcki
Last active August 29, 2015 14:19
Show Gist options
  • Save dcki/feeb9dbada393a3083a4 to your computer and use it in GitHub Desktop.
Save dcki/feeb9dbada393a3083a4 to your computer and use it in GitHub Desktop.
$ RAILS_ENV=development bundle exec pumactl -F /var/www/puma_config.rb start
Puma starting in single mode...
* Version 2.11.2 (rbx 2.1.0), codename: Intrepid Squirrel
* Min threads: 0, max threads: 16
* Environment: development
* Daemonizing...
$ RAILS_ENV=development bundle exec pumactl -F /var/www/puma_config.rb start
Puma starting in single mode...
* Version 2.11.2 (rbx 2.1.0), codename: Intrepid Squirrel
* Min threads: 0, max threads: 16
* Environment: development
* Daemonizing...
# Adapted from http://wagn.org/Puma_and_Nginx_production_stack
application_path = '/var/www/rails'
railsenv = ENV['RAILS_ENV'] || 'development'
directory application_path
environment railsenv
daemonize true
pidfile "#{application_path}/tmp/pids/puma-#{railsenv}.pid"
state_path "#{application_path}/tmp/pids/puma-#{railsenv}.state"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment