Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (30 sloc) 0.85 kb
#!/bin/sh
echo
echo
echo =============================================
echo Redeploying the CultureHub in production mode
echo =============================================
echo
echo
export _JAVA_OPTIONS="-Dconfig.file=`pwd`/conf/production.conf -Dlogger.resource=prod-logger.xml -Xms256M -Xmx1024M"
git pull
ant downloadSipCreator
kill -9 `cat RUNNING_PID` && rm RUNNING_PID
../play-2.0/play update
echo
echo "Starting Play. Check logs/application.log to see progress"
echo
../play-2.0/play start &
echo
echo "Starting Play. Please wait..."
echo
while ! (tail logs/application.log | grep -qi Listening); do
sleep 1
done
echo
echo Killing SBT
echo
ps -ef | grep "/play-2.0/framework/sbt/sbt-launch.jar start" | grep -v grep | awk '{print $2}' | xargs kill -9
echo
echo "Startup done. Check logs/application.log to see startup progress"
echo
Jump to Line
Something went wrong with that request. Please try again.