# Frustrated noob

**URL:** <https://www.ruby-forum.com/t/frustrated-noob/146155>\
**Category:** Rails\
**Created:** [August 18, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/frustrated-noob/146155 "2008-08-18T16:24:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![codemax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@codemax](https://www.ruby-forum.com/u/codemax)\
**Post date:** [August 18, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/frustrated-noob/146155/1 "2008-08-18T16:24:04Z")

</div>

Hello,

So I’m yet-another-noob trying to learn RoR. Here is my question…

Last night I was having all kinds of trouble getting layouts to work. I  
was searching google, learning about automatic layout assignments, and  
following directions. No matter what I did I couldn’t get my layout to  
show up in the browser. When I woke up in the morning and hit “refresh”

- BOOM there was my layout.

So my question is: what gives? I’m working with Rails 2.1 in production  
mode. I’m running on LAMP but I don’t have sudo. Is there a command to  
refresh/reset rails that I should be using? Did the webserver restart?

Thanks alot!

---

<div class="post-metadata">

**Author:** ![codemax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@codemax](https://www.ruby-forum.com/u/codemax)\
**Post date:** [August 18, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/frustrated-noob/146155/2 "2008-08-18T16:27:09Z")

</div>

On 18 Aug 2008, at 15:24, Leif Elan wrote:

> show up in the browser. When I woke up in the morning and hit  
> “refresh”
> 
> - BOOM there was my layout.
> 
> So my question is: what gives? I’m working with Rails 2.1 in  
> production  
> mode. I’m running on LAMP but I don’t have sudo. Is there a  
> command to  
> refresh/reset rails that I should be using? Did the webserver  
> restart?

in production mode changes won’t take effect until you restart  
whatever is running your rails code, which is why most people will  
develop in development mode where changes will normally take effect  
immediately.

Fred

---

<div class="post-metadata">

**Author:** ![codemax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@codemax](https://www.ruby-forum.com/u/codemax)\
**Post date:** [August 18, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/frustrated-noob/146155/3 "2008-08-18T16:34:14Z")

</div>

So assuming I have to be in production mode then how would i “restart  
whatever is running my rails code” ?? thanks

> in production mode changes won’t take effect until you restart  
> whatever is running your rails code, which is why most people will  
> develop in development mode where changes will normally take effect  
> immediately.
> 
> Fred

---

<div class="post-metadata">

**Author:** ![codemax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@codemax](https://www.ruby-forum.com/u/codemax)\
**Post date:** [August 18, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/frustrated-noob/146155/4 "2008-08-18T20:52:03Z")

</div>

> So assuming I have to be in production mode then how would i “restart  
> whatever is running my rails code” ?? thanks  
> If your running your application with Mongrel, then you would restart  
> the Mongrel instance, or instances.

Incidentally, why would you have to use production mode to develop your  
application? How are you testing? Are you testing? Rails provides these  
three environments because each is configured to help with each of the  
three primary stages of development (code, test and deploy).

Leif Elan wrote:

> So assuming I have to be in production mode then how would i “restart  
> whatever is running my rails code” ?? thanks
> 
> > in production mode changes won’t take effect until you restart  
> > whatever is running your rails code, which is why most people will  
> > develop in development mode where changes will normally take effect  
> > immediately.
> > 
> > Fred

---

<div class="post-metadata">

**Author:** ![codemax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@codemax](https://www.ruby-forum.com/u/codemax)\
**Post date:** [August 18, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/frustrated-noob/146155/5 "2008-08-18T21:07:58Z")

</div>

Thanks Robert. This is resolved. I just had to restart the fastcgi  
process.

And to answer your questions… I’m not running MOngrel. I’m on apache  
under linux. I don’t have sudo so I can’t restart the webserver. But I  
am running my own fastcgi so I can restart that and that worked.

Also, I can’t run in development mode because the hosting company says  
it slows down the server too much.

Robert W. wrote:

> > So assuming I have to be in production mode then how would i “restart  
> > whatever is running my rails code” ?? thanks  
> > If your running your application with Mongrel, then you would restart  
> > the Mongrel instance, or instances.
> 
> Incidentally, why would you have to use production mode to develop your  
> application? How are you testing? Are you testing? Rails provides these  
> three environments because each is configured to help with each of the  
> three primary stages of development (code, test and deploy).
> 
> Leif Elan wrote:
> 
> > So assuming I have to be in production mode then how would i “restart  
> > whatever is running my rails code” ?? thanks
> > 
> > > in production mode changes won’t take effect until you restart  
> > > whatever is running your rails code, which is why most people will  
> > > develop in development mode where changes will normally take effect  
> > > immediately.
> > > 
> > > Fred

---

<div class="post-metadata">

**Author:** ![codemax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@codemax](https://www.ruby-forum.com/u/codemax)\
**Post date:** [August 18, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/frustrated-noob/146155/6 "2008-08-18T22:04:16Z")

</div>

For what it’s worth, you might find it easier to develop your  
application on your local desktop rather than a live server especially  
if you don’t have root access or control over which environment you  
are running.

RSL

On Mon, Aug 18, 2008 at 3:07 PM, Leif Elan

---

<div class="post-metadata">

**Author:** ![codemax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@codemax](https://www.ruby-forum.com/u/codemax)\
**Post date:** [August 18, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/frustrated-noob/146155/7 "2008-08-18T21:23:36Z")

</div>

Oh! Well that makes more sense. It sounded like you were developing your  
application in production mode. But, I see you’re actually talking about  
your deployment, which definitely should be running in production mode.

Also, sorry to hear that your only option is FastCGI. But, that’s a  
whole other story. 🙂

Leif Elan wrote:

> Thanks Robert. This is resolved. I just had to restart the fastcgi  
> process.
> 
> And to answer your questions… I’m not running MOngrel. I’m on apache  
> under linux. I don’t have sudo so I can’t restart the webserver. But I  
> am running my own fastcgi so I can restart that and that worked.
> 
> Also, I can’t run in development mode because the hosting company says  
> it slows down the server too much.
> 
> Robert W. wrote:
> 
> > > So assuming I have to be in production mode then how would i “restart  
> > > whatever is running my rails code” ?? thanks  
> > > If your running your application with Mongrel, then you would restart  
> > > the Mongrel instance, or instances.
> > 
> > Incidentally, why would you have to use production mode to develop your  
> > application? How are you testing? Are you testing? Rails provides these  
> > three environments because each is configured to help with each of the  
> > three primary stages of development (code, test and deploy).
> > 
> > Leif Elan wrote:
> > 
> > > So assuming I have to be in production mode then how would i “restart  
> > > whatever is running my rails code” ?? thanks
> > > 
> > > > in production mode changes won’t take effect until you restart  
> > > > whatever is running your rails code, which is why most people will  
> > > > develop in development mode where changes will normally take effect  
> > > > immediately.
> > > > 
> > > > Fred
