Browse Source

installation setup for play1

Patrick Falls 12 years ago
parent
commit
471d09a7e0
2 changed files with 14 additions and 2 deletions
  1. 2 1
      config/benchmark_profile
  2. 12 1
      installer.py

+ 2 - 1
config/benchmark_profile

@@ -7,7 +7,8 @@ export GOPATH=~/FrameworkBenchmarks/go:~/FrameworkBenchmarks/webgo:$GOROOT
 export TOMCAT_HOME=~/FrameworkBenchmarks/installs/apache-tomcat-7.0.35
 export NODE_HOME=~/FrameworkBenchmarks/installs/node-v0.10.2-linux-x64
 export PLAY_HOME=~/FrameworkBenchmarks/installs/play-2.1.1
-export PATH="$JAVA_HOME/bin:$GRAILS_HOME/bin:$PLAY_HOME:$VERTX_HOME/bin:$GOROOT/bin:$NODE_HOME/bin:$HOME/FrameworkBenchmarks/installs/bin:$PATH"
+export PLAY1_HOME=~/FrameworkBenchmarks/installs/play-1.2.5
+export PATH="$JAVA_HOME/bin:$GRAILS_HOME/bin:$PLAY_HOME:$PLAY1_HOME:$VERTX_HOME/bin:$GOROOT/bin:$NODE_HOME/bin:$HOME/FrameworkBenchmarks/installs/bin:$PATH"
 
 export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/local/apr/lib'
 

+ 12 - 1
installer.py

@@ -228,11 +228,22 @@ class Installer:
     self.__run_command("sudo pip install flask flask-sqlalchemy")
 
     ##############################
-    # Play
+    # Play 2
     ##############################
     self.__run_command("wget http://downloads.typesafe.com/play/2.1.1/play-2.1.1.zip")
     self.__run_command("unzip -o play-2.1.1.zip")
     self.__run_command("rm play-2.1.1.zip")
+    
+    ##############################
+    # Play 1
+    ##############################
+    self.__run_command("wget http://downloads.typesafe.com/releases/play-1.2.5.zip")
+    self.__run_command("unzip -o play-1.2.5.zip")
+    self.__run_command("rm play-1.2.5.zip")
+    self.__run_command("mv play-1.2.5/play play-1.2.5/play1")
+    
+    # siena
+    self.__run_command("play-1.2.5/play install siena", send_yes=True)
 
     ##############################
     # Vert.x