diff options
author | Francis Irving <francis@mysociety.org> | 2009-12-02 20:48:26 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-12-02 20:48:26 +0000 |
commit | 223bc4b85c83a147833a16e50be083536fc062f4 (patch) | |
tree | f00953cfca6ffedff8410dbaf191b1289da22ea1 /script/rails-post-deploy | |
parent | 1bbb3f950f8bee92bf8a39e6f18c3278f1bab11d (diff) |
Give warning when rails_env.rb is made, as it is very confusing.
Diffstat (limited to 'script/rails-post-deploy')
-rwxr-xr-x | script/rails-post-deploy | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/script/rails-post-deploy b/script/rails-post-deploy index 1dce32797..c613d8ef4 100755 --- a/script/rails-post-deploy +++ b/script/rails-post-deploy @@ -76,6 +76,21 @@ 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 |