setup_scala_reactivemongo.sh 572 B

123456789101112131415161718
  1. #!/bin/bash
  2. source $IROOT/java7.installed
  3. cd play2-scala-reactivemongo
  4. sed -i 's|jdbc:mysql://.*:3306|jdbc:mysql://'"${DBHOST}"':3306|g' conf/application.conf
  5. # If application has an already existing process id, clear it.
  6. if [ -f ${TROOT}/play2-scala-reactivemongo/target/universal/stage/RUNNING_PID ]
  7. then
  8. rm -f -r ${TROOT}/play2-scala-reactivemongo/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-reactivemongo/target/universal/stage/bin/play2-scala-reactivemongo &