aboutsummaryrefslogtreecommitdiffstats
path: root/script/rails-post-deploy
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-09-19 10:54:51 +0100
committerMark Longair <mhl@pobox.com>2013-10-29 13:52:39 +0000
commit0d956b0928b30d348d1646adaec429741a72139a (patch)
treed44394e3f675723cb325cbe11b9c97a532091953 /script/rails-post-deploy
parentbed4fe5eb8898069a7a9b0177fdc39e679d5990c (diff)
Normalize whitespace in rails-post-deploy
The rails-post-deploy script unfortunately uses a mixtures of spaces and 0x09 to represent indentation, so it's not even clear what local convention to follow. It appears from the mixture that the intention is that the tabs should represent 4 spaces, so this commit replaces them, strips trailing whitespace and changes some non-standard indentation at the end of a bash heredoc.
Diffstat (limited to 'script/rails-post-deploy')
-rwxr-xr-xscript/rails-post-deploy54
1 files changed, 27 insertions, 27 deletions
diff --git a/script/rails-post-deploy b/script/rails-post-deploy
index de950311c..bf639855b 100755
--- a/script/rails-post-deploy
+++ b/script/rails-post-deploy
@@ -24,27 +24,27 @@ fi
# read config file in for later (STAGING_SITE)
if [ -e "config/general" ] || [ -e "config/general.yml" ]
then
- . commonlib/shlib/deployfns
- read_conf config/general
+ . commonlib/shlib/deployfns
+ read_conf config/general
else
- OPTION_DOMAIN=127.0.0.1:3000
- OPTION_STAGING_SITE=1
+ OPTION_DOMAIN=127.0.0.1:3000
+ OPTION_STAGING_SITE=1
fi
# create initial log files
if [ -e $TOP_DIR/../logs ]
then
- # mySociety servers have logs dir in level above
- rm -f log
- ln -s $TOP_DIR/../logs log
+ # mySociety servers have logs dir in level above
+ rm -f log
+ ln -s $TOP_DIR/../logs log
else
- # otherwise just make the directory
- if [ -h log ]
- then
- # remove any old-style symlink first
- rm -f log
- fi
- mkdir -p log
+ # otherwise just make the directory
+ if [ -h log ]
+ then
+ # remove any old-style symlink first
+ rm -f log
+ fi
+ mkdir -p log
fi
cd log
@@ -55,18 +55,18 @@ cd ..
if [ "$OPTION_STAGING_SITE" = "0" ]
then
cat <<-END
-
- *****************************************************************
- WARNING: About to make config/rails_env.rb which, via special
- code in config/boot.rb, forces the Rails environment to be
- "production". If this is a development system, please edit your
- config/general.yml file and set the STAGING_SITE option to 1,
- and also delete the generated config/rails_env.rb file.
- Alternatively, you can override config/rails_env.rb at any time
- with an environment variable.
- *****************************************************************
-
- END
+
+ *****************************************************************
+ WARNING: About to make config/rails_env.rb which, via special
+ code in config/boot.rb, forces the Rails environment to be
+ "production". If this is a development system, please edit your
+ config/general.yml file and set the STAGING_SITE option to 1,
+ and also delete the generated config/rails_env.rb file.
+ Alternatively, you can override config/rails_env.rb at any time
+ with an environment variable.
+ *****************************************************************
+
+END
echo "ENV['RAILS_ENV'] ||= 'production'" > config/rails_env.rb
fi
@@ -81,7 +81,7 @@ then
fi
if [ "$TRAVIS" = "true" ]
then
- bundle_install_options="--without development develop --deployment"
+ bundle_install_options="--without development develop --deployment"
fi
bundle install $bundle_install_options