Browse Source

Testing out bottle - a frequent offender

msmith-techempower 10 years ago
parent
commit
0bcb4668d5
2 changed files with 6 additions and 4 deletions
  1. 3 4
      frameworks/Java/gemini/start.sh
  2. 3 0
      frameworks/Python/bottle/setup.sh

+ 3 - 4
frameworks/Java/gemini/start.sh

@@ -1,8 +1,7 @@
 #!/bin/bash
 #!/bin/bash
 
 
-#setup_util.replace_text("gemini/Docroot/WEB-INF/GeminiHello.conf", "db.ConnectString = .*:3306", "db.ConnectString = " + args.database_host + ":3306")
-#setup_util.replace_text("gemini/Docroot/WEB-INF/resin.xml", "root-directory=\".*\/FrameworkBenchmarks/gemini", "root-directory=\"%s" % args.troot)
-  
-mkdir -p Docroot/WEB-INFclasses
+sed -i 's/db.ConnectString = .*:3306/db.ConnectString = '"$TFB_DATABASE_HOST"':3306/g' Docroot/WEB-INF/GeminiHello.conf
+sed -i 's|root-directory=".*/FrameworkBenchmarks/gemini|root-directory="'"$TROOT"'|g' Docroot/WEB-INF/resin.xml
+mkdir -p Docroot/WEB-INF/classes
 ant compile
 ant compile
 $RESIN_HOME/bin/resinctl -conf $TROOT/Docroot/WEB-INF/resin.xml start
 $RESIN_HOME/bin/resinctl -conf $TROOT/Docroot/WEB-INF/resin.xml start

+ 3 - 0
frameworks/Python/bottle/setup.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+
+$PY2_GUNICORN app:app -c gunicorn_conf.py