Skip to content

Instantly share code, notes, and snippets.

@jancuk
Last active November 11, 2015 15:57
Show Gist options
  • Select an option

  • Save jancuk/f1ce015439a5566251eb to your computer and use it in GitHub Desktop.

Select an option

Save jancuk/f1ce015439a5566251eb to your computer and use it in GitHub Desktop.
#!/usr/bin/env puma
basedir = '/Users/azhar/code/fighting/puma_s'
directory "#{basedir}"
environment 'development'
daemonize true
bind "unix://#{basedir}/tmp/sockets/api_indomaret.sock"
pidfile "#{basedir}/tmp/pid"
state_path "#{basedir}/tmp/state"
stdout_redirect 'log/puma.log', 'log/puma_err.log'
threads 2,4
preload_app!
## run app pumactl --state tmp/state start
activate_control_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment