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
because of the “OLD” way,
and I have
because of Capistrano deployment.
In order to take advantage of my new deployment ability, should I:
- Point my Apache symlink to the “appname/current” symlink
- somehow force my RAILS_ROOT to be this “appname/current” symlink
- configure Capistrano to use “appname” itself as the name of the
“current” directory and lose the directory named “current” living under
I hope that this makes sense.