setup.sh 377 B

12345678910111213
  1. #!/bin/bash
  2. fw_depends java resin leiningen
  3. # Update db host in the source file
  4. sed -i 's|:jdbc-url "jdbc:postgresql://.*/hello_world|:jdbc-url "jdbc:postgresql://'"${DBHOST}"':5432/hello_world|g' hello/src/hello/db/core.clj
  5. cd hello
  6. lein clean
  7. rm -rf target
  8. # pack all dependencies into a single jar: target/hello.jar
  9. lein uberjar
  10. java -server -jar target/hello.jar &