Ruby on Rails Friday, June 1, 2012

On Jun 1, 4:31 am, "Jeffrey L. Taylor" <r...@abluz.dyndns.org> wrote:
> Quoting BeagleBen <ste...@stevencahill.co.uk>:
>
> > Hello all
>
> > I am returning to rails after a moving in with asp.net mvc for a while, I
> > have setup rails on a centos server with passenger, I have set the rails
> > environment as production within my httpd config, when I do rake about it
> > show the environment as development, Please can anyone advise what I have
> > missed.
>
> You are running production in your webserver (presumably on port 80) and
> development on the command line.  This is normal.  They are separate contexts.
> The httpd config only applies to the Web server, not a terminal session.  If
> you would start Webrick or other Rails server from the command line, it would
> run the development environment on port 3000.  If you want to run in
> production mode from the command line, type "export RAILS_ENV=production" in
> bash or the equivalent in other shells (e.g. "RAILS_ENV=production; export
> RAILS_ENV" in sh).
>
> HTH,
>   Jeffrey

Many thanks for your help with this

Steven

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment