Skip to content

Instantly share code, notes, and snippets.

@jcheype
Last active August 29, 2015 14:00
Show Gist options
  • Save jcheype/11235196 to your computer and use it in GitHub Desktop.
Save jcheype/11235196 to your computer and use it in GitHub Desktop.
#!/bin/bash
#start MongoDB
/opt/mongodb/bin/mongod --noprealloc --quiet -dbpath /data/db --fork --nojournal --logpath /opt/mongodb/mongodb.log 2>/dev/null
echo MongoDB STARTED
#start H2
#java -jar /opt/h2/h2.jar 2>&1 > /dev/null &
# download and deploy app
#echo RETREIVING WAR FILE
#curl -o /opt/tomcat/webapps/ROOT.war "http://www.jcheype.com/vulcain-web-flow-1.0-SNAPSHOT.war"
#curl -o /opt/tomcat/webapps/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 /opt/tomcat
./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