Hi Dave, Yes, it's. For your description you're deploying using "copy" strategy<https://github.com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy/strategy/copy.rb>[1]. You should use remote<https://github.com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy/strategy/remote.rb>[2] or (better) remote_cache<https://github.com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy/strategy/remote_cache.rb>[3] strategy.
Remote strategy does a checkout/export in your remote server/servers everytime, as you want. Remote_cache strategy does a checkout in your server/servers in a path and maintain this copy, later copy it in your deploy path. Then the next deployment it just updates the code in this cloned repository and doesn't have to download again. Choose your flavour :) Regards PD: You can see all the strategies and a description (inside the code of everyone) there<https://github.com/capistrano/capistrano/tree/master/lib/capistrano/recipes/deploy/strategy> [4] [1] https://github.com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy/strategy/copy.rb [2] https://github.com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy/strategy/remote.rb [3] https://github.com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy/strategy/remote_cache.rb [4] https://github.com/capistrano/capistrano/tree/master/lib/capistrano/recipes/deploy/strategy 2012/7/25 dcheslow <[email protected]> > I have capistrano setup to deploy my PHP app from a remote git respository > to my web server... all is well. > > When I deploy, capistrano clones the repository to my local machine then > uses sftp to transfer everything to the web server... as per the docs. > > What I am wondering is... is there a way to eliminate this step and deploy > directly from the remote repository to the server (to make the whole > process much faster)? > > Thanks in advance, and sorry if I seem a bit noob at capistrano (I am), > > =dave= > > -- > * You received this message because you are subscribed to the Google > Groups "Capistrano" group. > * To post to this group, send email to [email protected] > * To unsubscribe from this group, send email to > [email protected] For more options, visit this > group at http://groups.google.com/group/capistrano?hl=en -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
