Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Martina Reiter
Martina Reiter
17,654 Points

Alternative to using a deamonizer with Rails apps

Hello :)

I´m very new in coding and programing particularly. I´ve recently deployed a little rails app on a hosting wich uses Apache servers and my app only started showing after I started Unicorn server. When I deployed it to Heroku before i didn´t have to run it. For now it´s doing well cause i have it working in deamonizer mood, but the problem that the hosting support pointed out is that when they reload their servers my app will stop running and i will have to start it again after i figure out that it´s not running....

So my question is, how do i get around it, cause it´s obviously possible? Right now it´s not such a big deal cause it´s only my little site but if it would be something bigger it would be a pretty alarming fact o.O

Thank you! :)

Brandon McClelland
Brandon McClelland
4,645 Points

You probably want to look into adding some sort of startup script that will automatically start the web server your app uses when the host computer reboots. For Debian/Ubuntu type systems that means updating /etc/rc.local to include some sort of boot-up command.

You'd probably need to list some more details about the host system you're using and if you even have the ability to SSH in and administrate things for anyone to give a more concrete answer but hopefully that's enough to get you started.