setup.sh 373 B

12345678910111213
  1. #!/bin/bash
  2. # Path vars must be set here
  3. export PATH="$JAVA_HOME/bin:$PATH"
  4. sed -i 's|:subname "//.*:3306|:subname "//'"${DBHOST}"':3306|g' hello/src/hello/handler.clj
  5. cd hello
  6. $LEIN_HOME/bin/lein clean
  7. $LEIN_HOME/bin/lein ring uberwar
  8. rm -rf $RESIN_HOME/webapps/*
  9. cp target/hello-compojure-standalone.war $RESIN_HOME/webapps/compojure.war
  10. $RESIN_HOME/bin/resinctl start