diff options
author | Francis Irving <francis@mysociety.org> | 2009-10-28 23:59:34 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-10-28 23:59:34 +0000 |
commit | f9ea28feaef20310289069f7ec1d7412984fe599 (patch) | |
tree | 9721ba15c5cc37f5ac94b8ce363648d47bfd7981 /script/rails-post-deploy | |
parent | 6301e4dd4532711dbeaf8fc2aa167519cfbfcf94 (diff) |
Now is the application directory, not mysociety CVS dir
Diffstat (limited to 'script/rails-post-deploy')
-rwxr-xr-x | script/rails-post-deploy | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/script/rails-post-deploy b/script/rails-post-deploy index 94e9b85a5..046445070 100755 --- a/script/rails-post-deploy +++ b/script/rails-post-deploy @@ -14,7 +14,7 @@ set -e #set -x # debug -MYSOCIETY_DIR=`pwd` +APP_DIR=`pwd` # make sure that there is an app directory, so are in a rails app tree cd app/.. @@ -58,11 +58,11 @@ rm -f rails ln -s $LN_PATH rails # create initial log files -if [ -e $MYSOCIETY_DIR/../logs ] +if [ -e $APP_DIR/../logs ] then # mySociety servers have logs dir in level above rm -f log - ln -s $MYSOCIETY_DIR/../logs log + ln -s $APP_DIR/../logs log else # otherwise just make the directory if [ -h log ] @@ -76,19 +76,6 @@ cd log touch development.log fastcgi.crash.log production.log test.log cd .. -# and for solr logs, if present -# (not now used by any mySociety sites, but hey) -if [ -e vendor/plugins/acts_as_solr/solr ] -then - cd vendor/plugins/acts_as_solr/solr - mkdir -p tmp - # put them inside e.g. mysociety/foi/log/solr - mkdir -p $MYSOCIETY_DIR/$1/log/solr - rm -f logs - ln -s $MYSOCIETY_DIR/$1/log/solr logs - cd - -fi - # Force appropriate environment (via a hack in config/boot.rb which needs # applying to your rails app, see foi/config/boot.rb) if [ "$OPTION_STAGING_SITE" = "0" ] |