setup_scala_mongodb.sh 428 B

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