Restarting Rails Application
I am building an application that will only be run on a local network and am looking for the best way to restart my server from within the application itsel开发者_Go百科f. For the time being this is only running on Windows using WEBrick.
Look at Capistrano as others have suggested, it's fantastic :)
$ cap deploy
That's all you have to do. It'll grab the latest source from your git/SVN repo (lots more supported ofc), deploy, and restart your app server.
精彩评论