def start(args, logfile, errfile): db_host = "DB_HOST={0}".format(args.database_host or 'localhost') start_server = db_host + " rvm ruby-2.0.0-p0 do bundle exec unicorn -E production -c config/unicorn.rb" commands = [ Command("sudo /usr/local/nginx/sbin/nginx -c $TROOT/config/nginx.conf", True), Command(start_server, False) ] return helper.run(commands, logfile, errfile, args.troot)
def start(args, logfile, errfile): db_host = "DB_HOST={0}".format(args.database_host or 'localhost') start_server = db_host + " rvm ruby-2.0.0-p0 do bundle exec thin start -C config/thin.yml" commands = [ Command("rvm ruby-2.0.0-p0 do bundle --jobs 4", True), Command(start_server, False) ] return helper.run(commands, logfile, errfile, args.troot)
def start(args, logfile, errfile): db_host = "DB_HOST={0}".format(args.database_host or 'localhost') start_server = db_host + " rvm jruby-1.7.8 do bundle exec puma -C config/puma.rb" commands = [ Command("rvm jruby-1.7.8 do bundle --jobs 4", True), Command(start_server, False) ] return helper.run(commands, logfile, errfile, args.troot)
def start(args, logfile, errfile): helper.set_database_host(args) commands = [ Command("sudo /usr/local/nginx/sbin/nginx -c $TROOT/config/nginx.conf", True), Command( "rvm ruby-2.0.0-p0 do bundle exec unicorn -E production -c config/unicorn.rb", False) ] return helper.run(commands, logfile, errfile, args.troot)
def start(args, logfile, errfile): #setup_util.replace_text("sinatra/config/nginx.conf", "/path/to/app/current", args.troot) db_host = "DB_HOST={0}".format(args.database_host or 'localhost') start_server = db_host + " rvm ruby-2.0.0-p0 do bundle exec unicorn -E production -c config/unicorn.rb" commands = [ Command("rvm ruby-2.0.0-p0 do bundle --jobs 4", True), Command("sudo /usr/local/nginx/sbin/nginx -c $TROOT/config/nginx.conf", True), Command(start_server, False) ] return helper.run(commands, logfile, errfile, args.troot)
def start(args, logfile, errfile): db_host = "DB_HOST={0}".format(args.database_host or 'localhost') command = Command( db_host + " rvm rbx-2.2.10 do bundle exec puma -b tcp://0.0.0.0:8080 -e production", False) return helper.run([command], logfile, errfile, args.troot)
def stop(logfile, errfile): helper.run([ Command( "sudo /usr/local/nginx/sbin/nginx -s stop -c $TROOT/config/nginx.conf", True) ], logfile, errfile, os.environ['TROOT']) return helper.stop('unicorn', logfile, errfile)
def start(args, logfile, errfile): db_host = "DB_HOST={0}".format(args.database_host or 'localhost') start_server = db_host + " rvm ruby-2.0.0-p0 do bundle exec puma -C config/puma.rb -w 8 --preload" return helper.run([Command(start_server, False)], logfile, errfile, args.troot)
def start(args, logfile, errfile): helper.set_database_host(args) command = Command( "rvm jruby-1.7.8 do bundle exec torqbox -b 0.0.0.0 -E production", False) return helper.run([command], logfile, errfile, args.troot)
def start(args, logfile, errfile): db_host = "DB_HOST={0}".format(args.database_host or 'localhost') start_server = db_host + " rvm jruby-1.7.8 do bundle exec trinidad --config config/trinidad.yml" return helper.run([Command(start_server, False)], logfile, errfile, args.troot)
def stop(logfile, errfile): helper.run([Command('rm -rf tmp/*', True)], logfile, errfile, os.environ['TROOT']) return helper.stop('thin', logfile, errfile)
def start(args, logfile, errfile): db_host = "DB_HOST={0}".format(args.database_host or 'localhost') start_server = db_host + " rvm jruby-1.7.8 do bundle exec torqbox -b 0.0.0.0 -E production" return helper.run([Command(start_server, False)], logfile, errfile, args.troot)
def start(args, logfile, errfile): helper.set_database_host(args) 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) return helper.run([command], logfile, errfile, args.troot)
def stop(logfile, errfile): helper.run([Command('rm -rf tmp/*', True)], logfile, errfile, '.') return helper.stop('thin', logfile, errfile)
def start(args, logfile, errfile): db_host = "DB_HOST={0}".format(args.database_host or 'localhost') start_server = db_host + " rvm jruby-1.7.13 do bundle exec puma -b tcp://0.0.0.0:8080 -e production" return helper.run([Command(start_server, False)], logfile, errfile, args.troot)
def start(args, logfile, errfile): helper.set_database_host(args) command = Command( "rvm ruby-2.0.0-p0 do bundle exec thin start -C config/thin.yml", False) return helper.run([command], logfile, errfile, args.troot)
def start(args, logfile, errfile): helper.set_database_host(args) command = Command( "rvm jruby-1.7.8 do bundle exec puma -b tcp://0.0.0.0:8080 -e production", False) return helper.run([command], logfile, errfile, args.troot)
def start(args, logfile, errfile): db_host = "DB_HOST={0}".format(args.database_host or 'localhost') start_server = db_host + " rvm ruby-2.1.2 do bundle exec thin start -C config/thin.yml" return helper.run([Command(start_server, False)], logfile, errfile, args.troot)
def start(args, logfile, errfile): helper.set_database_host(args) command = Command( "rvm jruby-1.7.8 do bundle exec trinidad --config config/trinidad.yml", False) return helper.run([command], logfile, errfile, args.troot)