# Capistrano/SwitchTower "current" dir deployment question

**URL:** <https://www.ruby-forum.com/t/capistrano-switchtower-current-dir-deployment-question/93808>\
**Category:** Rails\
**Created:** [April 11, 2006, 12:18am UTC](https://www.ruby-forum.com/t/capistrano-switchtower-current-dir-deployment-question/93808 "2006-04-11T00:18:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [April 11, 2006, 12:18am UTC](https://www.ruby-forum.com/t/capistrano-switchtower-current-dir-deployment-question/93808/1 "2006-04-11T00:18:47Z")

</div>

All,

I have successfully executed the “deploy” task in Capistrano/Switchtower  
to establish a symbolic link named “current” which points to the current  
version of my app. on my remote server.

My app. was already deployed to the existing Rails root directory (call  
it “appname”) though.  
I have Apache fronting my app. through a virtual host whose doc. root is  
itself a symbolic link to “appname”.

So to summarize, now I have

appname/app  
appname/config  
.  
.  
.  
appname/vendor

because of the “OLD” way,

and I have

appname/current/app  
appname/current/config  
.  
.  
.  
appname/current/vendor

because of Capistrano deployment.

In order to take advantage of my new deployment ability, should I:

1. Point my Apache symlink to the “appname/current” symlink

OR

1. somehow force my RAILS\_ROOT to be this “appname/current” symlink

OR

1. configure Capistrano to use “appname” itself as the name of the  
“current” directory and lose the directory named “current” living under  
“appname”?

I hope that this makes sense.

Thanks,  
Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [April 11, 2006, 7:05am UTC](https://www.ruby-forum.com/t/capistrano-switchtower-current-dir-deployment-question/93808/2 "2006-04-11T07:05:34Z")

</div>

Wes,

The recommended route is to point apache at the ‘current’ symlink.  
You could probably make it work in any number of other ways, but  
it’ll go a lot easier on you if you simply conform. 🙂

- Jamis
