setup_scala_reactivemongo.sh 541 B

12345678910111213141516
  1. #!/bin/bash
  2. cd play2-scala-reactivemongo
  3. sed -i 's|jdbc:mysql://.*:3306|jdbc:mysql://'"${DBHOST}"':3306|g' conf/application.conf
  4. # If application has an already existing process id, clear it.
  5. if [ -f ${TROOT}/play2-scala-reactivemongo/target/universal/stage/RUNNING_PID ]
  6. then
  7. rm -f -r ${TROOT}/play2-scala-reactivemongo/target/universal/stage/RUNNING_PID
  8. fi
  9. # Stage application.
  10. ${IROOT}/sbt/bin/sbt stage
  11. # Execute Start script in background.
  12. ${TROOT}/play2-scala-reactivemongo/target/universal/stage/bin/play2-scala-reactivemongo &