From 2eac4bef8d73f47bbe579b6f787ef54b8d782d7a Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Thu, 2 Feb 2012 11:51:53 +0000 Subject: Get rid of config/rails_env.rb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rails-post-deploy script was creating a file config/rails_env.rb to force $RAILS_ENV to have the appropriate value. But this is a huge pain during development, and shouldn’t be necessary anyway, so let’s get rid of it. --- script/rails-post-deploy | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'script/rails-post-deploy') 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 < 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 -- cgit v1.2.3