Changeset 1124


Ignore:
Timestamp:
Nov 11, 2010, 2:59:44 PM (10 years ago)
Author:
work@…
Message:
  • improved deploy script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/deploy.sh

    r1113 r1124  
    236236
    237237# only display build information on non-production instances
    238 if [ "$TYPE" != "www" ]; then
     238if [ "$TYPE" == "www" ]; then
     239        sed -i 's/app\.build\.display\.info=\w\+/app.build.display.info=0/gi' application.properties
     240else
    239241        sed -i 's/app\.build\.display\.info=\w\+/app.build.display.info=1/gi' application.properties
    240242fi
    241 
    242 # patch datasource.groovy
    243 #echo $STAMP patching datasource for $TYPE instance
    244 #sed -i 's/5432\/'$PROJECT'/5432\/'$PROJECT'-'$TYPE'/g' grails-app/conf/DataSource.groovy
    245 
    246 # patch Searchable
    247 #if [ -f grails-app/conf/Searchable.groovy ]; then
    248 #       echo $STAMP patching searchable configuration for $TYPE instance
    249 #       sed -i 's/'$PROJECT'/'$PROJECT'-'$TYPE'/gi' grails-app/conf/Searchable.groovy
    250 #fi
    251243
    252244# build new war
Note: See TracChangeset for help on using the changeset viewer.