Browse Source

servlet3-cass: fix database host configuration

marko asplund 11 years ago
parent
commit
a10cd97514

+ 1 - 0
servlet3-cass/setup.py

@@ -5,6 +5,7 @@ import os
 import setup_util
 import setup_util
 
 
 def start(args, logfile, errfile):
 def start(args, logfile, errfile):
+  setup_util.replace_text("servlet3-cass/src/main/resources/application.properties", "localhost", args.database_host)
 
 
   try:
   try:
     subprocess.check_call("mvn clean compile war:war", shell=True, cwd="servlet3-cass", stderr=errfile, stdout=logfile)
     subprocess.check_call("mvn clean compile war:war", shell=True, cwd="servlet3-cass", stderr=errfile, stdout=logfile)

+ 1 - 1
servlet3-cass/src/main/resources/application.properties

@@ -1,2 +1,2 @@
-cassandra.host=tfbdata
+cassandra.host=localhost
 cassandra.keyspace=tfb
 cassandra.keyspace=tfb