run_rbx_puma.py 394 B

12345678910
  1. import helper
  2. from helper import Command
  3. def start(args, logfile, errfile):
  4. db_host = "DB_HOST={0}".format(args.database_host or 'localhost')
  5. command = Command(db_host + " rvm rbx-2.2.10 do bundle exec puma -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)