I''m trying to deploy my application in a shared host but I get an error when running rake processes. Their IT tell me that perhaps I''m running the process in development mode and that''s why a get a DB connection error, but how can I know wich is the active environment? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Wed, Sep 24, 2008 at 11:44 AM, Abel <abel.tamayo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I''m trying to deploy my application in a shared host but I get an > error when running rake processes. Their IT tell me that perhaps I''m > running the process in development mode and that''s why a get a DB > connection error, but how can I know wich is the active environment?Hi Abel, could you provide some details about your deployment? For example, how''s your environment.rb configured? Are you using Passenger? Please provide as much information that can allow us to assist you. -Conrad --~--~---------~--~----~------------~-------~--~----~ 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 was just looking for a command line that shows wich is the active environment just to make sure, but now you ask I''m using Capistrano via a Gem developed by the hosting company, wich is called Brightbox. I suck at deployment and I always have this kind of problem so I just followed the guide they provide at their site and it''s my understanding that Capistrano would change the environment to production, but it doesn''t seem to be working. On Sep 24, 8:52 pm, "Conrad Taylor" <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Wed, Sep 24, 2008 at 11:44 AM, Abel <abel.tam...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I''m trying to deploy my application in a shared host but I get an > > error when running rake processes. Their IT tell me that perhaps I''m > > running the process in development mode and that''s why a get a DB > > connection error, but how can I know wich is the active environment? > > Hi Abel, could you provide some details about your deployment? For > example, how''s your environment.rb configured? Are you using Passenger? > Please provide as much information that can allow us to assist you. > > -Conrad--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Try to run your rake task like this: rake name:of:your:task RAILS_ENV=production On Wed, Sep 24, 2008 at 4:15 PM, Abel <abel.tamayo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I was just looking for a command line that shows wich is the active > environment just to make sure, but now you ask I''m using Capistrano > via a Gem developed by the hosting company, wich is called Brightbox. > I suck at deployment and I always have this kind of problem so I just > followed the guide they provide at their site and it''s my > understanding that Capistrano would change the environment to > production, but it doesn''t seem to be working. > > On Sep 24, 8:52 pm, "Conrad Taylor" <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> On Wed, Sep 24, 2008 at 11:44 AM, Abel <abel.tam...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> > I''m trying to deploy my application in a shared host but I get an >> > error when running rake processes. Their IT tell me that perhaps I''m >> > running the process in development mode and that''s why a get a DB >> > connection error, but how can I know wich is the active environment? >> >> Hi Abel, could you provide some details about your deployment? For >> example, how''s your environment.rb configured? Are you using Passenger? >> Please provide as much information that can allow us to assist you. >> >> -Conrad > > >-- Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) João Pessoa, PB, +55 83 8867-7208 --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Mauricio, I thought the default environment would be production. I wonder if there''s a way to change it permanently. On Sep 24, 9:17 pm, "Maurício Linhares" <mauricio.linha...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Try to run your rake task like this: > > rake name:of:your:task RAILS_ENV=production > > > > On Wed, Sep 24, 2008 at 4:15 PM, Abel <abel.tam...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I was just looking for a command line that shows wich is the active > > environment just to make sure, but now you ask I''m using Capistrano > > via a Gem developed by the hosting company, wich is called Brightbox. > > I suck at deployment and I always have this kind of problem so I just > > followed the guide they provide at their site and it''s my > > understanding that Capistrano would change the environment to > > production, but it doesn''t seem to be working. > > > On Sep 24, 8:52 pm, "Conrad Taylor" <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> On Wed, Sep 24, 2008 at 11:44 AM, Abel <abel.tam...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >> > I''m trying to deploy my application in a shared host but I get an > >> > error when running rake processes. Their IT tell me that perhaps I''m > >> > running the process in development mode and that''s why a get a DB > >> > connection error, but how can I know wich is the active environment? > > >> Hi Abel, could you provide some details about your deployment? For > >> example, how''s your environment.rb configured? Are you using Passenger? > >> Please provide as much information that can allow us to assist you. > > >> -Conrad > > -- > Maurício Linhareshttp://alinhavado.wordpress.com/(pt-br) |http://blog.codevader.com/(en) > João Pessoa, PB, +55 83 8867-7208--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Abel, The default environment is "development", but you can set a default by setting the system variable RAILS_ENV with the environment you want to have as the default. On Wed, Sep 24, 2008 at 4:45 PM, Abel <abel.tamayo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Thanks Mauricio, > > I thought the default environment would be production. I wonder if > there''s a way to change it permanently. > > On Sep 24, 9:17 pm, "Maurício Linhares" <mauricio.linha...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> Try to run your rake task like this: >> >> rake name:of:your:task RAILS_ENV=production >> >> >> >> On Wed, Sep 24, 2008 at 4:15 PM, Abel <abel.tam...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> > I was just looking for a command line that shows wich is the active >> > environment just to make sure, but now you ask I''m using Capistrano >> > via a Gem developed by the hosting company, wich is called Brightbox. >> > I suck at deployment and I always have this kind of problem so I just >> > followed the guide they provide at their site and it''s my >> > understanding that Capistrano would change the environment to >> > production, but it doesn''t seem to be working. >> >> > On Sep 24, 8:52 pm, "Conrad Taylor" <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> On Wed, Sep 24, 2008 at 11:44 AM, Abel <abel.tam...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> > I''m trying to deploy my application in a shared host but I get an >> >> > error when running rake processes. Their IT tell me that perhaps I''m >> >> > running the process in development mode and that''s why a get a DB >> >> > connection error, but how can I know wich is the active environment? >> >> >> Hi Abel, could you provide some details about your deployment? For >> >> example, how''s your environment.rb configured? Are you using Passenger? >> >> Please provide as much information that can allow us to assist you. >> >> >> -Conrad >> >> -- >> Maurício Linhareshttp://alinhavado.wordpress.com/(pt-br) |http://blog.codevader.com/(en) >> João Pessoa, PB, +55 83 8867-7208 > > >-- Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) João Pessoa, PB, +55 83 8867-7208 --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---