setup_scala_slick.sh 517 B

1234567891011121314151617
  1. #!/bin/bash
  2. source $IROOT/java7.installed
  3. cd play2-scala-slick
  4. sed -i "s|jdbc:mysql:\/\/.*:3306|jdbc:mysql://${DBHOST}:3306|g" conf/application.conf
  5. # If application is running, clear old running app.
  6. if [ -f ${TROOT}/play2-scala-slick/target/universal/stage/RUNNING_PID ]
  7. then
  8. rm -f -r ${TROOT}/play2-scala-slick/target/universal/stage/RUNNING_PID
  9. fi
  10. # Stage application.
  11. ${IROOT}/sbt/bin/sbt stage
  12. # Execute Start script in background.
  13. ${TROOT}/play2-scala-slick/target/universal/stage/bin/play2-scala-slick &