specific files or dir deployment from git or svn

25 views
Skip to first unread message

abhijit vaidya

unread,
Feb 4, 2014, 7:28:23 AM2/4/14
to capis...@googlegroups.com

Hi,

I am new to Capistrano. I am looking help on deploying only specific files or directoris inside git/svn repo.

Example scenario,

I have app called test-app
I have done a full deployment of app using default deploy.rb setting on one remote server
Later I added a folder in to repo. I just want to deploy this folder or specific files inside this folder(should be from command lines as like as older version task deploy:upload ) without redeploying full app again without cache.

is it possible?

Thanks
Abhijit

Lee Hambley

unread,
Feb 4, 2014, 10:16:48 AM2/4/14
to capistrano
Later I added a folder in to repo. I just want to deploy this folder or specific files inside this folder(should be from command lines as like as older version task deploy:upload ) without redeploying full app again without cache.

No, Capistrano 3 always uses a cache. It also doesn't support SVN. If you need something to simply upload changed files (which kindof defeats the purpose of tying a single deploy to a specific commit and logging what you deploy) write your own task using the Capfile, and SSHKit (the backend driver Gem we use) upload! method, it's documented here https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md#upload-a-directory-of-files

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/ca3b24a1-7112-4888-b7bf-7839193e2281%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages