Wes Gamble
2006-Apr-10 22:18 UTC
[Rails] Capistrano/SwitchTower "current" dir deployment question
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 2) somehow force my RAILS_ROOT to be this "appname/current" symlink OR 3) 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 -- Posted via http://www.ruby-forum.com/.
Jamis Buck
2006-Apr-11 04:30 UTC
[Rails] Capistrano/SwitchTower "current" dir deployment question
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 On Apr 10, 2006, at 4:18 PM, Wes Gamble wrote:> 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 > > 2) somehow force my RAILS_ROOT to be this "appname/current" symlink > > OR > > 3) 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 > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails