how do you make rails run in production mode when deploying in a shared hosting environment? thanks in advance -mike --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
How are you starting your server process( be it in development or whatever )? Are they useing FCGI, Mongrel, Lighty etc? How are you deploying to them( Capistrano? )? mike wrote:> how do you make rails run in production mode when deploying in a > shared hosting environment? thanks in advance -mike--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, thanks for your response. I am using FCGI at the moment. On 8/14/07, cammo <mvpaustralia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > How are you starting your server process( be it in development or > whatever )? > Are they useing FCGI, Mongrel, Lighty etc? > How are you deploying to them( Capistrano? )? > > > mike wrote: > > how do you make rails run in production mode when deploying in a > > shared hosting environment? thanks in advance -mike > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
OK and how are you deploying this app? On Aug 15, 10:05 am, "Michael Bannister" <mikebannis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, thanks for your response. I am using FCGI at the moment. > > On 8/14/07, cammo <mvpaustra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > How are you starting your server process( be it in development or > > whatever )? > > Are they useing FCGI, Mongrel, Lighty etc? > > How are you deploying to them( Capistrano? )? > > > mike wrote: > > > how do you make rails run in production mode when deploying in a > > > shared hosting environment? thanks in advance -mike--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry forgot to add In your environment.rb you''ll see on line 5 # ENV[''RAILS_ENV''] ||= ''production'' Just un-comment that line and it will force Rails into production mode On Aug 15, 10:13 am, cammo <mvpaustra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> OK and how are you deploying this app? > > On Aug 15, 10:05 am, "Michael Bannister" <mikebannis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > Hi, thanks for your response. I am using FCGI at the moment. > > > On 8/14/07, cammo <mvpaustra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > How are you starting your server process( be it in development or > > > whatever )? > > > Are they useing FCGI, Mongrel, Lighty etc? > > > How are you deploying to them( Capistrano? )? > > > > mike wrote: > > > > how do you make rails run in production mode when deploying in a > > > > shared hosting environment? thanks in advance -mike--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I''m having trouble getting capistrano working on os x (just moved from a linux laptop to a macbook pro) so at the moment i''m copying the files via scp from my development directory to the host (a2hosting). -mike On 8/14/07, cammo <mvpaustralia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > OK and how are you deploying this app? > > On Aug 15, 10:05 am, "Michael Bannister" <mikebannis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Hi, thanks for your response. I am using FCGI at the moment. > > > > On 8/14/07, cammo <mvpaustra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > How are you starting your server process( be it in development or > > > whatever )? > > > Are they useing FCGI, Mongrel, Lighty etc? > > > How are you deploying to them( Capistrano? )? > > > > > mike wrote: > > > > how do you make rails run in production mode when deploying in a > > > > shared hosting environment? thanks in advance -mike > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
by the way. everything works fine (application works, etc) except that it''s using the development database connection in database.yml On 8/14/07, cammo <mvpaustralia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > OK and how are you deploying this app? > > On Aug 15, 10:05 am, "Michael Bannister" <mikebannis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Hi, thanks for your response. I am using FCGI at the moment. > > > > On 8/14/07, cammo <mvpaustra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > How are you starting your server process( be it in development or > > > whatever )? > > > Are they useing FCGI, Mongrel, Lighty etc? > > > How are you deploying to them( Capistrano? )? > > > > > mike wrote: > > > > how do you make rails run in production mode when deploying in a > > > > shared hosting environment? thanks in advance -mike > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
And you''ve got them defined differently in your database.yml?. I''m not sure how that''s really possible if you running in production. When the app throws an error do you see the full stack trace on the screen?(of you production version) On Aug 15, 10:34 am, "Michael Bannister" <mikebannis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> by the way. everything works fine (application works, etc) except that > it''s using the development database connection in database.yml > > On 8/14/07, cammo <mvpaustra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > OK and how are you deploying this app? > > > On Aug 15, 10:05 am, "Michael Bannister" <mikebannis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > Hi, thanks for your response. I am using FCGI at the moment. > > > > On 8/14/07, cammo <mvpaustra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > How are you starting your server process( be it in development or > > > > whatever )? > > > > Are they useing FCGI, Mongrel, Lighty etc? > > > > How are you deploying to them( Capistrano? )? > > > > > mike wrote: > > > > > how do you make rails run in production mode when deploying in a > > > > > shared hosting environment? thanks in advance -mike--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Cool thanks for all your help. I had to force the ENV_RAILS variable in environments.rb like you suggested. On 8/14/07, cammo <mvpaustralia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > And you''ve got them defined differently in your database.yml?. > I''m not sure how that''s really possible if you running in production. > When the app throws an error do you see the full stack trace on the > screen?(of you production version) > > On Aug 15, 10:34 am, "Michael Bannister" <mikebannis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > by the way. everything works fine (application works, etc) except that > > it''s using the development database connection in database.yml > > > > On 8/14/07, cammo <mvpaustra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > OK and how are you deploying this app? > > > > > On Aug 15, 10:05 am, "Michael Bannister" <mikebannis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > wrote: > > > > Hi, thanks for your response. I am using FCGI at the moment. > > > > > > On 8/14/07, cammo <mvpaustra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > How are you starting your server process( be it in development or > > > > > whatever )? > > > > > Are they useing FCGI, Mongrel, Lighty etc? > > > > > How are you deploying to them( Capistrano? )? > > > > > > > mike wrote: > > > > > > how do you make rails run in production mode when deploying in a > > > > > > shared hosting environment? thanks in advance -mike > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---