run_jruby_puma.py 408 B

1234567891011121314
  1. import helper
  2. from helper import Command
  3. def start(args, logfile, errfile):
  4. helper.set_database_host(args)
  5. commands = [
  6. Command("rvm jruby-1.7.8 do bundle", True),
  7. Command("rvm jruby-1.7.8 do bundle exec puma -b tcp://0.0.0.0:8080 -e production", False)
  8. ]
  9. return helper.run(commands, logfile, errfile, args.troot)
  10. def stop(logfile, errfile):
  11. return helper.stop('puma', logfile, errfile)