setup_scala.sh 378 B

123456789101112131415
  1. #!/bin/bash
  2. fw_depends java sbt
  3. cd play2-scala
  4. sed -i "s|jdbc:mysql:\/\/.*:3306|jdbc:mysql://${DBHOST}:3306|g" ${TROOT}/play2-scala/conf/application.conf
  5. # Clear old running app.
  6. rm -rf ${TROOT}/play2-scala/target/universal/stage/RUNNING_PID
  7. # Stage application.
  8. sbt stage
  9. # Execute Start script in background.
  10. ${TROOT}/play2-scala/target/universal/stage/bin/play2-scala &