setup.sh 275 B

123456789101112
  1. #!/bin/bash
  2. fw_depends mysql java resin leiningen
  3. sed -i 's|127.0.0.1|'"${DBHOST}"'|g' hello/src/hello/handler.clj
  4. cd hello
  5. lein clean
  6. lein ring uberwar
  7. rm -rf $RESIN_HOME/webapps/*
  8. cp target/hello-compojure-standalone.war $RESIN_HOME/webapps/compojure.war
  9. resinctl start