Mailinglist Archive: yast-commit (1914 mails)

< Previous Next >
[yast-commit] <rest-service> network : Warn about unset RAILS_ENV
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Wed, 9 Sep 2009 16:19:25 +0200
  • Message-id: <E1MlP4G-0004vw-7g@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit 1b9873366fb1bbd1f574522a7d334f58050fb22f
Author: Klaus Kämpf <kkaempf@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages