Sfoglia il codice sorgente

altered the cowboy and elli setup files to modify the database host

Patrick Falls 12 anni fa
parent
commit
5fd8250521
4 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 1 1
      cowboy/benchmark_config
  2. 2 2
      cowboy/setup_erlang.py
  3. 1 1
      elli/setup_erlang.py
  4. 1 1
      installer.py

+ 1 - 1
cowboy/benchmark_config

@@ -7,6 +7,6 @@
       "db_url": "/db",
       "db_url": "/db",
       "query_url": "/db?queries=",
       "query_url": "/db?queries=",
       "port": 8080,
       "port": 8080,
-      "sort": 38
+      "sort": 40
   }}]
   }}]
 }
 }

+ 2 - 2
cowboy/setup_erlang.py

@@ -4,8 +4,8 @@ import sys
 import setup_util
 import setup_util
 
 
 def start(args):
 def start(args):
-#  setup_util.replace_text("rails/config/database-ruby.yml", "host: .*", "host: " + args.database_host)
-  
+  setup_util.replace_text("cowboy/src/hello_world_app.erl", "\"benchmarkdbpass\", \".*\", 3306", "\"benchmarkdbpass\", \"" + args.database_host + "\", 3306")
+
   try:
   try:
     subprocess.check_call("./rebar get-deps", shell=True, cwd="cowboy")
     subprocess.check_call("./rebar get-deps", shell=True, cwd="cowboy")
     subprocess.check_call("./rebar compile", shell=True, cwd="cowboy")
     subprocess.check_call("./rebar compile", shell=True, cwd="cowboy")

+ 1 - 1
elli/setup_erlang.py

@@ -4,7 +4,7 @@ import sys
 import setup_util
 import setup_util
 
 
 def start(args):
 def start(args):
-#  setup_util.replace_text("rails/config/database-ruby.yml", "host: .*", "host: " + args.database_host)
+  setup_util.replace_text("elli/src/elli_bench_sup.erl", "\"benchmarkdbpass\", \".*\", 3306", "\"benchmarkdbpass\", \"" + args.database_host + "\", 3306")
   
   
   try:
   try:
     subprocess.check_call("./rebar get-deps", shell=True, cwd="elli")
     subprocess.check_call("./rebar get-deps", shell=True, cwd="elli")

+ 1 - 1
installer.py

@@ -22,7 +22,7 @@ class Installer:
     #######################################
     #######################################
     self.__run_command("sudo apt-get update", True)
     self.__run_command("sudo apt-get update", True)
     self.__run_command("sudo apt-get upgrade", True)    
     self.__run_command("sudo apt-get upgrade", True)    
-    self.__run_command("sudo apt-get install build-essential libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev python-software-properties unzip git-core libcurl4-openssl-dev libbz2-dev libmysqlclient-dev mongodb-clients libreadline6-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev libgdbm-dev ncurses-dev automake libffi-dev htop libtool bison", True)
+    self.__run_command("sudo apt-get install build-essential libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev python-software-properties unzip git-core libcurl4-openssl-dev libbz2-dev libmysqlclient-dev mongodb-clients libreadline6-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev libgdbm-dev ncurses-dev automake libffi-dev htop libtool bison libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 liborc-0.4-0 libwxbase2.8-0 libwxgtk2.8-0", True)
 
 
     self.__run_command("cp ../config/benchmark_profile ../../.bash_profile")
     self.__run_command("cp ../config/benchmark_profile ../../.bash_profile")