Browse Source

trying to run the server with popen but that doesn't seem to help

Mike Megally 12 years ago
parent
commit
6204476abe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dropwizard/setup.py

+ 2 - 2
dropwizard/setup.py

@@ -9,8 +9,8 @@ def start(args):
     setup_util.replace_text("dropwizard/hello-world.yml", "url: jdbc:mysql://localhost/hello_world", "url: jdbc:mysql://" + args.database_host + ":3306/hello_world")
     setup_util.replace_text("dropwizard/hello-world.yml", "url: jdbc:mysql://localhost/hello_world", "url: jdbc:mysql://" + args.database_host + ":3306/hello_world")
 
 
     try:
     try:
-        subprocess.check_call("mvn package;", shell=True, cwd="dropwizard")
-        subprocess.check_call("java -jar target/hello-world-0.0.1-SNAPSHOT.jar server hello-world.yml", shell=True, cwd="dropwizard")
+        subprocess.check_call("mvn clean package;", shell=True, cwd="dropwizard")
+        subprocess.Popen("java -jar target/hello-world-0.0.1-SNAPSHOT.jar server hello-world.yml", shell=True, cwd="dropwizard")
         return 0
         return 0
     except subprocess.CalledProcessError:
     except subprocess.CalledProcessError:
         return 1
         return 1