# Problems during deployment with capistrano

**URL:** <https://www.ruby-forum.com/t/problems-during-deployment-with-capistrano/109411>\
**Category:** Rails\
**Created:** [July 14, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/problems-during-deployment-with-capistrano/109411 "2007-07-14T13:56:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas\_Kviby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ad7895/32.png) [@Andreas\_Kviby](https://www.ruby-forum.com/u/Andreas_Kviby)\
**Post date:** [July 14, 2007, 1:56pm UTC](https://www.ruby-forum.com/t/problems-during-deployment-with-capistrano/109411/1 "2007-07-14T13:56:55Z")

</div>

So I wrote my first little rails app and suceeded to deploy it to my  
railsmachine account. But now when I wrote a new app in Rails I want to  
overwrite the old one with this completely and I can’t seem to get this  
to  
work at all. Does someone have any tricks lying around to help me clean  
and  
re-deploy the whole shebang?

## –

Andreas Kviby  
Telefon 070-352 66 76  
E-post removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Andreas\_Kviby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ad7895/32.png) [@Andreas\_Kviby](https://www.ruby-forum.com/u/Andreas_Kviby)\
**Post date:** [July 14, 2007, 6:10pm UTC](https://www.ruby-forum.com/t/problems-during-deployment-with-capistrano/109411/2 "2007-07-14T18:10:22Z")

</div>

Are you using SVN? Have you committed your latest updates?

FYI:  
Capistrano will take the latest version of your app from SVN save it in  
a time-stamped directory (under /appname/releases) and change the  
/appname/current (really a linux symbolic link) to point to the new  
time-stamped directory.

If you are doing a totally a new app or have updated its location in SVN  
have you updated your RAILSROOT/config/deploy.rb file?

---

<div class="post-metadata">

**Author:** ![Andreas\_Kviby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ad7895/32.png) [@Andreas\_Kviby](https://www.ruby-forum.com/u/Andreas_Kviby)\
**Post date:** [July 14, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/problems-during-deployment-with-capistrano/109411/3 "2007-07-14T19:31:18Z")

</div>

Hi  
I am also new to svn but I have managed to checkout the code that I have  
checked in but do not how to commit the changes.

2007/7/14, Luke P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> If you are doing a totally a new app or have updated its location in SVN  
> have you updated your RAILSROOT/config/deploy.rb file?
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

## –

Andreas Kviby  
Telefon 070-352 66 76  
E-post removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Andreas\_Kviby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ad7895/32.png) [@Andreas\_Kviby](https://www.ruby-forum.com/u/Andreas_Kviby)\
**Post date:** [July 15, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/problems-during-deployment-with-capistrano/109411/4 "2007-07-15T23:40:25Z")

</div>

In your local SVN workspace, first add any new files to the repo:  
svn add \*  
Then check in the changes:  
svn ci -m “my check-in message”

Now, when you deploy (assuming capistrano is set up correctly), your  
changes will supersede the old stuff on the production host. Cap  
actually leaves the old versions of your code on there too, but  
creates a symlink to the most recent version as ‘current’.

This page helped me a lot with deployment:  
[http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/](http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/)
