ref: refs/heads/jr_ntp
commit 1b9873366fb1bbd1f574522a7d334f58050fb22f
Author: Klaus Kämpf
Date: Wed Sep 9 16:19:25 2009 +0200
Warn about unset RAILS_ENV
---
webservice/config/environment.rb | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/webservice/config/environment.rb b/webservice/config/environment.rb
index d1af80e..43784e2 100644
--- a/webservice/config/environment.rb
+++ b/webservice/config/environment.rb
@@ -8,6 +8,8 @@
# but http://groups.google.com/group/sdruby/browse_thread/thread/5239824b058ac936 doesn't know any better
RAILS_ENV = ENV['RAILS_ENV']
+STDERR.puts "RAILS_ENV environment variable isn't set !" unless RAILS_ENV
+
# Specifies gem version of Rails to use when vendor/rails is not present
# RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org