|
@@ -1,6 +1,7 @@
|
|
|
|
|
|
import subprocess
|
|
|
import sys
|
|
|
+import os
|
|
|
import setup_util
|
|
|
|
|
|
def start(args, logfile, errfile):
|
|
@@ -11,7 +12,7 @@ def start(args, logfile, errfile):
|
|
|
subprocess.check_call("cp Gemfile-jruby Gemfile", shell=True, cwd="rails-stripped", stderr=errfile, stdout=logfile)
|
|
|
subprocess.check_call("cp Gemfile-jruby.lock Gemfile.lock", shell=True, cwd="rails-stripped", stderr=errfile, stdout=logfile)
|
|
|
subprocess.check_call("cp config/database-jruby.yml config/database.yml", shell=True, cwd="rails-stripped", stderr=errfile, stdout=logfile)
|
|
|
- subprocess.Popen("rvm jruby-1.7.8 do bundle exec torqbox -E production", shell=True, cwd="rails-stripped", stderr=errfile, stdout=logfile)
|
|
|
+ subprocess.Popen("rvm jruby-1.7.8 do bundle exec torqbox -b 0.0.0.0 -E production", shell=True, cwd="rails-stripped", stderr=errfile, stdout=logfile)
|
|
|
return 0
|
|
|
except subprocess.CalledProcessError:
|
|
|
return 1
|