On Mon, Feb 13, 2012 at 1:39 PM, Rafi A <rafigl...@gmail.com> wrote:

> Hi All,
>
> I want to get the environment name in which the application is executing
> whether in production or in development etc using the bash script and want
> to write that result into the .sh file. Not by using the ruby. Any ideas of
> how to get this work?
>

Do you mean the environment on a "bash" level ?

Well, when passenger is used, you could check the RAILS_ENV  value

Maybe this is useful ?

  http://www.modrails.com/documentation/Users%20guide%20Nginx.html#RailsEnv

HTH,

Peter


-- 
*** Available for a new project ***

Peter Vandenabeele
http://twitter.com/peter_v
http://rails.vandenabeele.com
http://coderwall.com/peter_v

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to