run_jruby_puma.py 406 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. start_server = db_host + " rvm jruby-1.7.13 do bundle exec puma -b tcp://0.0.0.0:8080 -e production"
  6. return helper.run([Command(start_server, False)], logfile, errfile, args.troot)
  7. def stop(logfile, errfile):
  8. return helper.stop('puma', logfile, errfile)