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

link|improve this question

71% accept rate
feedback

2 Answers

up vote 2 down vote accepted

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).

link|improve this answer
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 '10 at 10:37
4  
*facepalm*... – womble Jan 3 '10 at 10:40
feedback

Restart Rails application under Passenger:

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

http://www.modrails.com/documentation/Users%20guide.html#_redeploying_restarting_the_ruby_on_rails_application

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.