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. Thank you in advance Beagle -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit groups.google.com/d/msg/rubyonrails-talk/-/2UW8UCkrgdcJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
Quoting BeagleBen <steven-WOys9nditxdgA7E4e0i5GbVCufUGDwFn@public.gmane.org>:> 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 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
On Jun 1, 4:31 am, "Jeffrey L. Taylor" <r...-f/t7CGFWhwGcvWdFBKKxig@public.gmane.org> wrote:> Quoting BeagleBen <ste...-WOys9nditxdgA7E4e0i5GbVCufUGDwFn@public.gmane.org>: > > > 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, > JeffreyMany 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.