Browse Source

remove bash_profile.sh from grails

Lita Gratrix 10 years ago
parent
commit
cea2bd46b8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      frameworks/Groovy/grails/setup.sh

+ 3 - 3
frameworks/Groovy/grails/setup.sh

@@ -1,14 +1,14 @@
 #!/bin/bash
 #!/bin/bash
+
 export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
 export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
 export RESIN_HOME=${IROOT}/resin-4.0.41
 export RESIN_HOME=${IROOT}/resin-4.0.41
-
 export GRAILS_PATH=${IROOT}/grails-2.4.4/bin/
 export GRAILS_PATH=${IROOT}/grails-2.4.4/bin/
 
 
-sed -i 's|jdbc:mysql://.*:3306|jdbc:mysql://'"${DBHOST}"':3306|g' hello/grails-app/conf/DataSource.groovy
-
 export PATH=${GRAILS_PATH}:$PATH
 export PATH=${GRAILS_PATH}:$PATH
 export GRAILS_AGENT_CACHE_DIR=${IROOT}/.grails/.slcache
 export GRAILS_AGENT_CACHE_DIR=${IROOT}/.grails/.slcache
 
 
+sed -i 's|jdbc:mysql://.*:3306|jdbc:mysql://'"${DBHOST}"':3306|g' hello/grails-app/conf/DataSource.groovy
+
 cd hello
 cd hello
 grails -Dgrails.work.dir=${IROOT}/.grails -non-interactive -plain-output refresh-dependencies
 grails -Dgrails.work.dir=${IROOT}/.grails -non-interactive -plain-output refresh-dependencies
 grails -Dgrails.work.dir=${IROOT}/.grails -non-interactive -plain-output compile
 grails -Dgrails.work.dir=${IROOT}/.grails -non-interactive -plain-output compile