# Is using script/console in live production environment ok?

**URL:** <https://www.ruby-forum.com/t/is-using-script-console-in-live-production-environment-ok/189261>\
**Category:** Rails\
**Created:** [May 27, 2010, 4:47pm UTC](https://www.ruby-forum.com/t/is-using-script-console-in-live-production-environment-ok/189261 "2010-05-27T16:47:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![james](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@james](https://www.ruby-forum.com/u/james)\
**Post date:** [May 27, 2010, 4:47pm UTC](https://www.ruby-forum.com/t/is-using-script-console-in-live-production-environment-ok/189261/1 "2010-05-27T16:47:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![james](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@james](https://www.ruby-forum.com/u/james)\
**Post date:** [May 27, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/is-using-script-console-in-live-production-environment-ok/189261/2 "2010-05-27T16:52:21Z")

</div>

On 27 May 2010 15:45, james [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![james](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@james](https://www.ruby-forum.com/u/james)\
**Post date:** [May 27, 2010, 6:22pm UTC](https://www.ruby-forum.com/t/is-using-script-console-in-live-production-environment-ok/189261/3 "2010-05-27T18:22:22Z")

</div>

Andy J. wrote:

> On 27 May 2010 15:45, james [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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,
> 
> Andy

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![james](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@james](https://www.ruby-forum.com/u/james)\
**Post date:** [May 27, 2010, 7:07pm UTC](https://www.ruby-forum.com/t/is-using-script-console-in-live-production-environment-ok/189261/4 "2010-05-27T19:07:36Z")

</div>

If you are using SQLite make sure you run under same UID as passenger/  
fastcgi/mongrel/etc
