setup.sh 668 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. source $IROOT/java7.installed
  3. source $IROOT/lein.installed
  4. export RESIN_HOME=${IROOT}/resin-4.0.41
  5. sed -i 's|:subname "//.*:3306|:subname "//'"${DBHOST}"':3306|g' hello/src/hello/handler.clj
  6. cd hello
  7. lein clean
  8. lein ring uberwar
  9. rm -rf $RESIN_HOME/webapps/*
  10. cp target/hello-compojure-standalone.war $RESIN_HOME/webapps/compojure.war
  11. $RESIN_HOME/bin/resinctl start
  12. # preform an initial request to warm up the server
  13. # initial requests were taking >15 seconds, causing fails in the tests
  14. echo "Sleeping, then executing an initial request to ensure server is in a responsive state"
  15. sleep 30
  16. curl -m 60 http://localhost:8080/compojure/ > /dev/null 2>&1