Posted by: tszao | January 18, 2009

Application Error – Rails application failed to start properly – thank you puts

So I learned another little fact about rails, puts and apache. In a production environment, they do not agree.

I just made a bunch of changes for the wrestling website that I have been working on and finally got them all uploaded. When I went to check to see if they are working on the server I was shocked to find out that my carefully laid plans had failed miserably.

Debugging in a live environment can be a very stressful endeavor.

Of course the code works in development but in live (because I do not have a staging environment that is exactly like my production) things can still go wrong. So, as I sift through the code I start with things left in that don’t need to be there.

As it turns out I had a puts statement that was left over from debugging and it was causing the server to have some major fits.

Moral of the story, remove your puts statements before you go live with the code.


Leave a response

Your response:

Categories