Changeset 890


Ignore:
Timestamp:
Sep 16, 2010, 11:24:24 AM (9 years ago)
Author:
duh
Message:

latest revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/continuous_integration.sh

    r864 r890  
    9191# get svn revision of HEAD and running application
    9292cd $PATH_GRAILS_SOURCE
     93OLD_APP_VERSION=`sed -n 's/app.version=\(.*\)$/\1/p' <  application.properties`
    9394$SVN revert --recursive --quiet *
    9495#$SVN update --quiet *
     
    209210sed -i 's/Welcome to '$PROJECT' version/Welcome to the <b>continuous integration build<\/b> of <b>'$PROJECT'<\/b>/gi' grails-app/views/home/index.gsp
    210211
     212# clean project
     213#echo $STAMP cleaning project cache...
     214#grails clean --non-interactive > /dev/null
     215
     216# patch datasource.groovy
     217echo $STAMP patching datasource for ci instance
     218sed -i 's/5432\/'$PROJECT'/5432\/'$PROJECT'-ci/g' grails-app/conf/DataSource.groovy
     219
    211220# build new war
    212221echo $STAMP building new war...
     
    214223
    215224# undeploying gscf releases
    216 rm -rf $PATH_TOMCAT_WEBAPPS/$PROJECT*
     225rm -rf $PATH_TOMCAT_WEBAPPS/$PROJECT-$OLD_APP_VERSION-ci*
    217226
    218227# deploying new build
    219228echo $STAMP deploying new production WAR
    220 cp target/$PROJECT-$APP_VERSION.war $PATH_TOMCAT_WEBAPPS
     229cp target/$PROJECT-$APP_VERSION.war $PATH_TOMCAT_WEBAPPS/$PROJECT-$APP_VERSION-ci.war
    221230
    222231# start tomcat
Note: See TracChangeset for help on using the changeset viewer.