|
@@ -2,17 +2,22 @@
|
|
|
|
|
|
source $IROOT/java7.installed
|
|
|
|
|
|
-export RESIN_HOME=${IROOT}/resin-4.0.41
|
|
|
-export LEIN_HOME=$IROOT/lein
|
|
|
+source $IROOT/lein.installed
|
|
|
|
|
|
-# Path vars must be set here
|
|
|
-export PATH="$JAVA_HOME/bin:$PATH"
|
|
|
+export RESIN_HOME=${IROOT}/resin-4.0.41
|
|
|
|
|
|
sed -i 's|:subname "//.*:3306|:subname "//'"${DBHOST}"':3306|g' hello/src/hello/handler.clj
|
|
|
|
|
|
cd hello
|
|
|
-$LEIN_HOME/bin/lein clean
|
|
|
-$LEIN_HOME/bin/lein ring uberwar
|
|
|
+lein clean
|
|
|
+lein ring uberwar
|
|
|
rm -rf $RESIN_HOME/webapps/*
|
|
|
cp target/hello-compojure-standalone.war $RESIN_HOME/webapps/compojure.war
|
|
|
-$RESIN_HOME/bin/resinctl start
|
|
|
+
|
|
|
+$RESIN_HOME/bin/resinctl start
|
|
|
+
|
|
|
+# preform an initial request to warm up the server
|
|
|
+# initial requests were taking >15 seconds, causing fails in the tests
|
|
|
+echo "Sleeping, then executing an initial request to ensure server is in a responsive state"
|
|
|
+sleep 30
|
|
|
+curl -m 60 http://localhost:8080/compojure/ > /dev/null 2>&1
|