Skip to content

Instantly share code, notes, and snippets.

@jcheype
Last active August 29, 2015 14:00
Show Gist options
  • Save jcheype/11187203 to your computer and use it in GitHub Desktop.
Save jcheype/11187203 to your computer and use it in GitHub Desktop.
#!/bin/sh
#start MongoDB
/usr/bin/mongod -dbpath /data/db --fork -journal --logpath /opt/mongodb.log
#start H2
java -jar /opt/h2/h2.jar 2>&1 > /dev/null &
# download and deploy app
cd /opt/tomcat/webapps/
curl -o ROOT.war "http://nexus.vidal.net/service/local/artifact/maven/content?r=vidal-snapshots-group&g=com.vidal.bo&a=vulcain-web-flow&v=LATEST&p=war"
#start tomcat
cd ..
./bin/startup.sh && tail -f /opt/tomcat/logs/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment