run_mri_puma.py 374 B

12345678910
  1. import helper
  2. from helper import Command
  3. def start(args, logfile, errfile):
  4. helper.set_database_host(args)
  5. command = Command("rvm ruby-2.0.0-p0 do bundle exec puma -t 8:32 -w 8 --preload -b tcp://0.0.0.0:8080 -e production", False)
  6. return helper.run([command], logfile, errfile, args.troot)
  7. def stop(logfile, errfile):
  8. return helper.stop('puma', logfile, errfile)