aboutsummaryrefslogtreecommitdiffstats
path: root/script/rails-post-deploy
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-02-02 12:30:36 +0000
committerSeb Bacon <seb.bacon@gmail.com>2012-02-02 12:30:36 +0000
commit53d249b2c500dae07e934c0009d0813181092702 (patch)
tree7797047ccfa54e5ac05fb8689821ab80694dd225 /script/rails-post-deploy
parentcd77da0c7ea166b8cdd9ecc5a8d2055515027ad8 (diff)
parent2eac4bef8d73f47bbe579b6f787ef54b8d782d7a (diff)
Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5
Diffstat (limited to 'script/rails-post-deploy')
-rwxr-xr-xscript/rails-post-deploy27
1 files changed, 0 insertions, 27 deletions
diff --git a/script/rails-post-deploy b/script/rails-post-deploy
index df9f67528..263d5d926 100755
--- a/script/rails-post-deploy
+++ b/script/rails-post-deploy
@@ -55,33 +55,6 @@ cd log
touch development.log fastcgi.crash.log production.log test.log
cd ..
-# Force appropriate environment (via a hack in config/boot.rb which needs
-# applying to your rails app, see foi/config/boot.rb)
-if [ ! -e "config/rails_env.rb" ]
-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 a
-particular one - this is used for the mySociety deployment
-system. You don't want it for local development, because it will
-not work in a confusing way you try and use two environments
-(e.g. development and test) in the same working directory.
-*****************************************************************
-
-END
-fi
-if [ "$OPTION_STAGING_SITE" = "0" ]
-then
- echo "ENV['RAILS_ENV'] = 'production'" > config/rails_env.rb
-elif [[ "$OPTION_DOMAIN" == *"test"* ]]
-then
- echo "ENV['RAILS_ENV'] = 'test'" > config/rails_env.rb
-else
- echo "ENV['RAILS_ENV'] = 'development'" > config/rails_env.rb
-fi
-
if [ -n "$OPTION_THEME_URL" ]
then
script/plugin install --force $OPTION_THEME_URL