setup.sh 301 B

1234567891011
  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. fw_depends java resin maven
  5. mvn clean package
  6. rm -rf $RESIN_HOME/webapps/*
  7. cp target/activeweb.war $RESIN_HOME/webapps/
  8. resinctl start