setup.sh 365 B

12345678910111213
  1. #!/bin/bash
  2. fw_depends postgresql java resin maven mono dsl_platform
  3. source $IROOT/java.installed
  4. echo "Changing the database"
  5. cat $TROOT/web.xml | sed 's/localhost/'$DBHOST'/g' > $TROOT/src/main/webapp/WEB-INF/web.xml
  6. mvn clean compile war:war
  7. rm -rf $RESIN_HOME/webapps/*
  8. cp target/revenj.war $RESIN_HOME/webapps/
  9. JAVA_EXE=$JAVA_HOME/bin/java resinctl start