|
@@ -12,12 +12,12 @@ def start(args, logfile, errfile):
|
|
|
if os.name == 'nt':
|
|
|
subprocess.check_call('rmdir /S /Q "%RESIN_HOME%\\webapps\\"', shell=True, stderr=errfile, stdout=logfile)
|
|
|
subprocess.check_call('mkdir "%RESIN_HOME%\\webapps\\"', shell=True, stderr=errfile, stdout=logfile)
|
|
|
- subprocess.check_call('copy ninja-resin\\target\\ninja-resin.war "%RESIN_HOME%\\webapps\\ninja-resin.war"', shell=True, stderr=errfile, stdout=logfile)
|
|
|
+ subprocess.check_call('copy ninja-resin\\target\\ninja.war "%RESIN_HOME%\\webapps\\ninja.war"', shell=True, stderr=errfile, stdout=logfile)
|
|
|
subprocess.check_call('"%RESIN_HOME%\\bin\\start.bat"', shell=True, stderr=errfile, stdout=logfile)
|
|
|
else:
|
|
|
subprocess.check_call("rm -rf $RESIN_HOME/webapps/*", shell=True, stderr=errfile, stdout=logfile)
|
|
|
- subprocess.check_call("cp ninja-resin/target/ninja-resin.war $RESIN_HOME/webapps/ninja-resin.war", shell=True, stderr=errfile, stdout=logfile)
|
|
|
- subprocess.check_call("$RESIN_HOME/bin/resinctl", shell=True, stderr=errfile, stdout=logfile)
|
|
|
+ subprocess.check_call("cp ninja-resin/target/ninja.war $RESIN_HOME/webapps/ninja.war", shell=True, stderr=errfile, stdout=logfile)
|
|
|
+ subprocess.check_call("$RESIN_HOME/bin/resinctl start", shell=True, stderr=errfile, stdout=logfile)
|
|
|
return 0
|
|
|
except subprocess.CalledProcessError:
|
|
|
return 1
|