setup.sh 287 B

123456789
  1. #!/bin/bash
  2. sed -i 's|localhost|'"${DBHOST}"'|g' src/main/webapp/WEB-INF/resin-web.xml
  3. sed -i 's|localhost|'"${DBHOST}"'|g' src/main/java/app/config/DbConfig.java
  4. mvn clean package
  5. rm -rf $RESIN_HOME/webapps/*
  6. cp target/activeweb.war $RESIN_HOME/webapps/
  7. $RESIN_HOME/bin/resinctl start