Changeset 681


Ignore:
Timestamp:
Jul 21, 2010, 12:06:36 PM (6 years ago)
Author:
duh
Message:

fixed some bugs in the deployment process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/deploy_latest_gscf.sh

    r678 r681  
    5858echo .updating source
    5959cd $PATH_GRAILS_SOURCE
     60$SVN revert --recursive --quiet .
    6061SVN_REVISION=`$SVN update | sed -n 's/At revision \(.*\)\./\1/p'`
    6162
     
    110111echo ".clean source"
    111112grails clean > /dev/null
    112 svn update > /dev/null
    113 
    114 # make sure patched configuration files are okay
    115 svn revert grails-app/conf/DataSource.groovy > /dev/null
    116 svn revert grails-app/conf/Searchable.groovy > /dev/null
     113$SVN update > /dev/null
    117114
    118115# build production war
     
    128125sleep 5
    129126
    130 # undeploy old production war
    131 echo ".undeploying old production war"
    132 ls $PATH_TOMCAT_WEBAPPS/gscf*.war|grep -v demo|xargs -i rm {}
     127# undeploying gscf releases
     128rm -rf $PATH_TOMCAT_WEBAPPS/gscf*
    133129
    134130# deploy production war
     
    157153grails prod war > /dev/null
    158154
    159 # undeploy old demo war
    160 echo ".undeploying old demo war"
    161 ls $PATH_TOMCAT_WEBAPPS/gscf*-demo.war|xargs -i rm {}
    162 
    163155# deploying new demo war
    164156echo ".deploying new demo war"
Note: See TracChangeset for help on using the changeset viewer.