Hi, I’d like to be able to restart Apache so that any changes I make to my ruby Sinatra applications running under Apache / Phusion Passenger can be picked up quickly.
How do I do this? The usual command “apachectl -k restart” does not work, I get a command not found message in my ssh session.
I am on a SuperHosting Xtreme account on the bochetti server.
Under Ruby and Phusion Passenger all I do is in the ssh.
At the prompt once the ln -s is set and say the name of the is greatapp then to restart the server. I type in [code]touch ~/greatapp/tmp/restart.txt[/code]
refresh the page and it is running. and if I do another update to the code I do it for every time I add code or change the links in the files or add pages etc.
While you can’t “restart” apache on our shared/managed services, most rails applications being run with passenger can be restarted by simply touching a file that tells the application to restart. In most situations, this file is located in tmp directory under your rails applications, and is called restart.txt.
For example, you should be able to use the following command (note you would have to change your path to fit your situation) to restart your application …
You must be Logged In to post an Answer.
Not a member yet? Sign Up Now »