Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

up vote 3 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).

share|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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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