# Successfully using BackgroundRB in a production environment...?

**URL:** <https://www.ruby-forum.com/t/successfully-using-backgroundrb-in-a-production-environment/142155>\
**Category:** Rails\
**Created:** [July 3, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/successfully-using-backgroundrb-in-a-production-environment/142155 "2008-07-03T22:27:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [July 3, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/successfully-using-backgroundrb-in-a-production-environment/142155/1 "2008-07-03T22:27:31Z")

</div>

Hi All,

I’m having some severe trouble getting BackgroundRB to run against  
production. I can configure it to run against development all day  
long, but the second I disable all the development items and move to  
production, backgroundRB throws a fit telling me that it can’t connect  
to the development database, etc.

I have set the ‘environment’ variable to production. I have also  
tried setting it via the command line explicitly. Nothing works.

Any thoughts?

Best Regards.

---

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [July 4, 2008, 10:30am UTC](https://www.ruby-forum.com/t/successfully-using-backgroundrb-in-a-production-environment/142155/2 "2008-07-04T10:30:15Z")

</div>

Hi Michael,

> I’m having some severe trouble getting BackgroundRB to run against  
> production. I can configure it to run against development all day  
> long, but the second I disable all the development items and move to  
> production, backgroundRB throws a fit telling me that it can’t connect  
> to the development database, etc.
> 
> I have set the ‘environment’ variable to production. I have also  
> tried setting it via the command line explicitly. Nothing works.

We successfully run BackgrounDRb in production on a multitude of sites.  
You’ll want to issue “script/backgroundrb {start|stop} -e production”.  
Then in config/backgroundrb.yml have an entry like so:

:production:  
:backgroundrb:  
:environment: production

–  
Roderick van Domburg

> **[De domeinnaam Nedforce.nl is te koop.](http://www.nedforce.nl)**
>
> Deze mooie domeinnaam kan al over een paar minuten van jou zijn. Betalen gaat eenvoudig en vertrouwd via iDEAL. Direct na de betaling ontvang je de verhuiscode per e-mail en kun je aan de slag.
