|
@@ -7,13 +7,11 @@ def start(args, logfile, errfile):
|
|
|
setup_util.replace_text("luminus/hello/src/hello/models/schema.clj", ":subname \"//.*:3306", ":subname \"//" + args.database_host + ":3306")
|
|
|
|
|
|
try:
|
|
|
- subprocess.check_call("rm -rf target", shell=True, cwd="luminus/hello", stderr=errfile, stdout=logfile)
|
|
|
- subprocess.check_call("lein clean", shell=True, cwd="luminus/hello", stderr=errfile, stdout=logfile)
|
|
|
- subprocess.check_call("lein deps", shell=True, cwd="luminus/hello", stderr=errfile, stdout=logfile)
|
|
|
- subprocess.check_call("lein ring uberwar", shell=True, cwd="luminus/hello", stderr=errfile, stdout=logfile)
|
|
|
- subprocess.check_call("rm -rf $RESIN_HOME/webapps/*", shell=True, stderr=errfile, stdout=logfile)
|
|
|
- subprocess.check_call("cp luminus/hello/target/hello-luminus-standalone.war $RESIN_HOME/webapps/luminus.war", shell=True, stderr=errfile, stdout=logfile)
|
|
|
- subprocess.check_call("$RESIN_HOME/bin/resinctl start", shell=True, stderr=errfile, stdout=logfile)
|
|
|
+ subprocess.check_call("lein clean", shell=True, cwd="compojure/hello", stderr=errfile, stdout=logfile)
|
|
|
+ subprocess.check_call("lein ring uberwar", shell=True, cwd="luminus/hello" stderr=errfile, stdout=logfile)
|
|
|
+ subprocess.check_call("rm -rf $RESIN_HOME/webapps/*", shell=True)
|
|
|
+ subprocess.check_call("cp luminus/hello/target/hello-luminus-standalone.war $RESIN_HOME/webapps/luminus.war", shell=True)
|
|
|
+ subprocess.check_call("$RESIN_HOME/bin/resinctl start", shell=True)
|
|
|
return 0
|
|
|
except subprocess.CalledProcessError:
|
|
|
return 1
|