Browse Source

master Seems we need to remove the target dir

Just in case dependencies were updated.
Mike Smith 11 years ago
parent
commit
1ded3dcfba
1 changed files with 2 additions and 0 deletions
  1. 2 0
      luminus/setup.py

+ 2 - 0
luminus/setup.py

@@ -7,7 +7,9 @@ def start(args, logfile, errfile):
   setup_util.replace_text("luminus/hello/src/hello/models/schema.clj", ":subname \"//.*:3306", ":subname \"//" + args.database_host + ":3306")
   setup_util.replace_text("luminus/hello/src/hello/models/schema.clj", ":subname \"//.*:3306", ":subname \"//" + args.database_host + ":3306")
 
 
   try:
   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 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("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("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("cp luminus/hello/target/hello-luminus-standalone.war $RESIN_HOME/webapps/luminus.war", shell=True, stderr=errfile, stdout=logfile)