# Setup up svn on my server

**URL:** <https://www.ruby-forum.com/t/setup-up-svn-on-my-server/159508>\
**Category:** Rails\
**Created:** [February 5, 2009, 7:34am UTC](https://www.ruby-forum.com/t/setup-up-svn-on-my-server/159508 "2009-02-05T07:34:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [February 5, 2009, 7:34am UTC](https://www.ruby-forum.com/t/setup-up-svn-on-my-server/159508/1 "2009-02-05T07:34:47Z")

</div>

Hi all

Here is the thing that I want to do. What I want is that As soon as I  
commit the changes to my svn which resides on beanstalk i want those  
changes to get reflected to my website too.

Can any one tell me a step by step process to do it? Or provide me a  
link for the same.

Thanks

---

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [February 5, 2009, 7:49am UTC](https://www.ruby-forum.com/t/setup-up-svn-on-my-server/159508/2 "2009-02-05T07:49:33Z")

</div>

for deployment of rails-apps take a look at capistrano:

> **[CapiFy | Home Page](https://www.capify.org/)**
>
> The home page for CapiFy.

---

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [February 5, 2009, 7:56am UTC](https://www.ruby-forum.com/t/setup-up-svn-on-my-server/159508/3 "2009-02-05T07:56:30Z")

</div>

MaD wrote:

> for deployment of rails-apps take a look at capistrano:  
> [http://www.capify.org/](http://www.capify.org/)

Yes I know capistrano but isnt there any other way out to do it?

---

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [February 5, 2009, 8:24am UTC](https://www.ruby-forum.com/t/setup-up-svn-on-my-server/159508/4 "2009-02-05T08:24:10Z")

</div>

isn’t capistrano a great way to do it?

just write a little rake task to match your needs and all it takes is  
one single call.

---

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [February 5, 2009, 8:30am UTC](https://www.ruby-forum.com/t/setup-up-svn-on-my-server/159508/5 "2009-02-05T08:30:51Z")

</div>

MaD wrote:

> isn’t capistrano a great way to do it?
> 
> just write a little rake task to match your needs and all it takes is  
> one single call.

yes capistrano is the best way out but i wanted to find out something  
else.

Thanks a lot for your help

---

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [February 5, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/setup-up-svn-on-my-server/159508/6 "2009-02-05T18:33:55Z")

</div>

On 5 Feb 2009, at 14:45, Billee D. wrote:

> 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 could have a commit hook. Restarting your production app every  
time you commit a change doesn’t sound like a great idea though

Fred

---

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [February 5, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/setup-up-svn-on-my-server/159508/7 "2009-02-05T15:46:51Z")

</div>

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:

svn update

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

touch tmp/restart.txt

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [February 5, 2009, 6:42pm UTC](https://www.ruby-forum.com/t/setup-up-svn-on-my-server/159508/8 "2009-02-05T18:42:09Z")

</div>

Maybe it’s just me, but automatically reflect every svn commit to a  
production app does not sound like a great idea either…

On Thu, Feb 5, 2009 at 3:33 PM, Frederick C.  
\<removed\_email\_address@domain.invalid
