# Help with ruby script/daemons start in production

**URL:** <https://www.ruby-forum.com/t/help-with-ruby-script-daemons-start-in-production/137317>\
**Category:** Rails\
**Created:** [May 11, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/help-with-ruby-script-daemons-start-in-production/137317 "2008-05-11T23:56:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [May 11, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/help-with-ruby-script-daemons-start-in-production/137317/1 "2008-05-11T23:56:54Z")

</div>

I have no log in production mode with ruby script/daemons start. How can  
I make it work?

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [May 12, 2008, 8:44am UTC](https://www.ruby-forum.com/t/help-with-ruby-script-daemons-start-in-production/137317/2 "2008-05-12T08:44:19Z")

</div>

John S. wrote:

> I have no log in production mode with ruby script/daemons start. How can  
> I make it work?

Have someone any idea. I always have the daemon log in my  
development.log, not in my production.log.

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [May 12, 2008, 9:07am UTC](https://www.ruby-forum.com/t/help-with-ruby-script-daemons-start-in-production/137317/3 "2008-05-12T09:07:08Z")

</div>

John S. wrote:

> John S. wrote:
> 
> > I have no log in production mode with ruby script/daemons start. How can  
> > I make it work?
> 
> Have someone any idea. I always have the daemon log in my  
> development.log, not in my production.log.

Also, I am using Mongrel

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [May 12, 2008, 9:10am UTC](https://www.ruby-forum.com/t/help-with-ruby-script-daemons-start-in-production/137317/4 "2008-05-12T09:10:31Z")

</div>

On 12 May 2008, at 08:07, John S. wrote:

> John S. wrote:
> 
> > John S. wrote:
> > 
> > > I have no log in production mode with ruby script/daemons start.  
> > > How can  
> > > I make it work?
> > 
> > Have someone any idea. I always have the daemon log in my  
> > development.log, not in my production.log.

WHat are these daemons and how are you starting them? It could be as  
simple as setting the RAILS\_ENV environment variable (since that is  
one of the ways in which rails decides which environment to use).

Fred

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [May 12, 2008, 1:08pm UTC](https://www.ruby-forum.com/t/help-with-ruby-script-daemons-start-in-production/137317/5 "2008-05-12T13:08:20Z")

</div>

Frederick C. wrote:

> On 12 May 2008, at 08:07, John S. wrote:
> 
> > John S. wrote:
> > 
> > > John S. wrote:
> > > 
> > > > I have no log in production mode with ruby script/daemons start.  
> > > > How can  
> > > > I make it work?
> > > 
> > > Have someone any idea. I always have the daemon log in my  
> > > development.log, not in my production.log.
> 
> WHat are these daemons and how are you starting them? It could be as  
> simple as setting the RAILS\_ENV environment variable (since that is  
> one of the ways in which rails decides which environment to use).
> 
> Fred

I am getting that jobs table doesn’t exist in mybd\_development in  
development.log. I am using Backgrounfu. Certainly, I need a jobs table,  
and I have one in production, and I want to use it. I am using:  
RAILS\_ENV=production ruby script/daemons start

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [May 12, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/help-with-ruby-script-daemons-start-in-production/137317/6 "2008-05-12T13:14:33Z")

</div>

On 12 May 2008, at 12:08, John S. wrote:

> > > >
> 
> I am getting that jobs table doesn’t exist in mybd\_development in  
> development.log. I am using Backgrounfu. Certainly, I need a jobs  
> table,  
> and I have one in production, and I want to use it. I am using:  
> RAILS\_ENV=production ruby script/daemons start

Do you need  
export RAILS\_ENV=production  
?

Fred
