setup.sh 522 B

12345678910111213
  1. #!/bin/bash
  2. sed -i 's|jdbc:mysql://.*:3306|jdbc:mysql://'"${DBHOST}"':3306|g' hello/grails-app/conf/DataSource.groovy
  3. fw_depends mysql java grails resin
  4. cd hello
  5. grails -Dgrails.work.dir=${IROOT}/.grails -non-interactive -plain-output refresh-dependencies
  6. grails -Dgrails.work.dir=${IROOT}/.grails -non-interactive -plain-output compile
  7. grails -Dgrails.work.dir=${IROOT}/.grails prod -non-interactive -plain-output war
  8. rm -rf $RESIN_HOME/webapps/*
  9. cp target/hello-0.1.war $RESIN_HOME/webapps/grails.war
  10. resinctl start