I need to make some minor record changes in the database on my live production site. I use Capistrano to deploy. I know I can activate script/console by entering my "/current" Capistrano directory and running: RAILS_ENV=production script/console Are there any dangers or pitfalls to be aware of when using script/ console to make record changes to a live site in a production 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-/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 http://groups.google.com/group/rubyonrails-talk?hl=en.
Andy Jeffries
2010-May-27 14:51 UTC
Re: Is using script/console in live production environment ok?
On 27 May 2010 15:45, james <hindle.james-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I need to make some minor record changes in the database on my live > production site. I use Capistrano to deploy. I know I can activate > script/console by entering my "/current" Capistrano directory and > running: > > RAILS_ENV=production script/console > > Are there any dangers or pitfalls to be aware of when using script/ > console to make record changes to a live site in a production > environment?No, it''s fine - just obviously be careful of what you''re doing. Cheers, Andy -- 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 http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-May-27 16:22 UTC
Re: Is using script/console in live production environment
Andy Jeffries wrote:> On 27 May 2010 15:45, james <hindle.james-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> I need to make some minor record changes in the database on my live >> production site. I use Capistrano to deploy. I know I can activate >> script/console by entering my "/current" Capistrano directory and >> running: >> >> RAILS_ENV=production script/console >> >> Are there any dangers or pitfalls to be aware of when using script/ >> console to make record changes to a live site in a production >> environment? > > No, it''s fine - just obviously be careful of what you''re doing.And of course, if you need to do it more than once in a blue moon, something is obviously wrong.> > Cheers, > > > AndyBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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 http://groups.google.com/group/rubyonrails-talk?hl=en.
chris
2010-May-27 17:06 UTC
Re: Is using script/console in live production environment ok?
If you are using SQLite make sure you run under same UID as passenger/ fastcgi/mongrel/etc On May 27, 10:45 am, james <hindle.ja...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I need to make some minor record changes in the database on my live > production site. I use Capistrano to deploy. I know I can activate > script/console by entering my "/current" Capistrano directory and > running: > > RAILS_ENV=production script/console > > Are there any dangers or pitfalls to be aware of when using script/ > console to make record changes to a live site in a production > 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-/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 http://groups.google.com/group/rubyonrails-talk?hl=en.