aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscript/rails-post-deploy19
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" ]