Browse Source

Added urls to benchmark_config file. Also moved dependencies to installer.py

Patrick Falls 12 years ago
parent
commit
a1b16475c2
3 changed files with 4 additions and 2 deletions
  1. 1 1
      installer.py
  2. 1 1
      plack/app.psgi
  3. 2 0
      plack/benchmark_config

+ 1 - 1
installer.py

@@ -113,7 +113,7 @@ class Installer:
     self.__run_command("curl http://downloads.activestate.com/ActivePerl/releases/5.16.3.1603/ActivePerl-5.16.3.1603-x86_64-linux-glibc-2.3.5-296746.tar.gz | tar xvz");
     self.__run_command("sudo ./install.sh --license-accepted --prefix /opt/ActivePerl-5.16 --no-install-html", cwd="ActivePerl-5.16.3.1603-x86_64-linux-glibc-2.3.5-296746", send_yes=True)
     self.__run_command("curl -L http://cpanmin.us | perl - --sudo App::cpanminus")
-    self.__run_command("cpanm -S DBI DBD::mysql Kelp Dancer Mojolicious Kelp::Module::JSON::XS Dancer::Plugin::Database Starman Plack JSON Web::Simple DBD::Pg")
+    self.__run_command("cpanm -f -S DBI DBD::mysql Kelp Dancer Mojolicious Kelp::Module::JSON::XS Dancer::Plugin::Database Starman Plack JSON Web::Simple DBD::Pg JSON::XS EV HTTP::Parser::XS Monoceros")
 
     #
     # php

+ 1 - 1
plack/app.psgi

@@ -6,7 +6,7 @@ use DBI;
 
 my $dbh = DBI->connect_cached(
     'dbi:mysql:database=hello_world;host=localhost;port=3306', 
-    qw(benchmarkdbuser benchmarkdbpassword)
+    qw(benchmarkdbuser benchmarkdbpass)
 ) || die $!;
 
 my $sth = $dbh->prepare_cached('SELECT randomNumber FROM World WHERE id = ?');

+ 2 - 0
plack/benchmark_config

@@ -3,6 +3,8 @@
   "tests": [{
     "default": {
       "setup_file": "setup",
+      "json_url": "/json",
+      "db_url": "/db",
       "port": 8080,
       "sort": 118
     }