There is really no “automatic” way to update the working copy on your
server. But, if you have SSH you can update your repo, login to your
server over SSH, and in the root directory you have under version
control type this command:
You should see some files fly by you with your recently changed files.
Then you need to restart your server. This differs depending on the
web server you use (and various modules like mod_rails). For example,
if I’m using Passenger I just need to type the following at the
command line to restart the server instance(s):
And then hit your site in a web browser. That should be it.
However, like MaD pointed out, if you used Capistrano all of this
would be done with one simple Rake task. Capistrano is really the way
to go if you want to perform as few steps as possible to deploy/
redeploy your Rails app.
On Feb 5, 1:34 am, Ankit P. firstname.lastname@example.org