0

I need to reload some files for ruby on my server, how do i restart ruby as it isnt a daemon?

2 Answers 2

2

If something isn't running continually, then when it next starts it will read the new files. My crystal ball suggests you're actually referring to a Passenger instance; that is a daemon, but it's one that is "slaved" to Apache. If you restart Apache, that should do the trick, however Rails (and Passenger) is supposed to have some sort of auto-reloading shenanigan going on, but I guess that isn't working (or you're missing something).

2
  • I had to edit one of the ruby "source" files, essentially i need to kill all instances of ruby so that one the files can be reloaded in RAM, i might just reboot the server probabbly the fastest solution
    – Arcath
    Jan 3, 2010 at 10:37
  • 4
    *facepalm*...
    – womble
    Jan 3, 2010 at 10:40
2

Restart Rails application under Passenger:

touch /path/to/your/app/tmp/restart.txt

https://www.phusionpassenger.com/library/admin/apache/restart_app.html#restart-txt

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .