gem-capistrano-wp icon indicating copy to clipboard operation
gem-capistrano-wp copied to clipboard

Capistrano 3 support

Open thaeli opened this issue 11 years ago • 6 comments

Currently, this gem is writtend for Capistrano 2. Opening this issue to discuss updating or rewriting for Capistrano 3.

thaeli avatar Oct 25 '13 16:10 thaeli

Maybe clue us in on the potential benefits?

What specifically would be gained by migrating to capistrano 3?

jondavidjohn avatar Nov 07 '13 02:11 jondavidjohn

How about an indication in the docs that it is 2.15.5 or less is required for it as an interim?

Anyone attempting to start from scratch today with capistrano on a new environment will get v3 installed which it does not work with.

http://www.capistranorb.com/documentation/upgrading/

Idealien avatar Nov 11 '13 21:11 Idealien

@Idealien Seems reasonable to me. Also, we do properly declare dependencies in the gemspec, so if you are using bundler this shouldn't be an issue.

jondavidjohn avatar Nov 11 '13 21:11 jondavidjohn

A note regarding Capistrano 3 support: currently, cap3 doesn't support git submodules out of the box, making the update - for our primary use case - significantly more complicated.

http://stackoverflow.com/questions/19403138/capistrano-v3-deploy-git-repository-and-its-submodules

ziz avatar Jan 29 '14 16:01 ziz

I just created a gem for Capistrano 3 with WordPress, it makes the following easy with a click of a button..

  • wordpress:db:push - Exports your local database and imports it on remote server
  • wordpress:db:pull - Exports your remote database and imports it on your local
  • wordpress:db:deploy - Uploads the .sql in your version control and imports in on remote
  • wordpress:content:sync - Synchronises your local and remote wp-content/uploads folder so that you have all assets

https://rubygems.org/gems/wordpress-capistrano

Note: It doesn't do symlinking (easy with Cap3) or install WordPress (easy with Composer).

Would love some feedback :)

morrislaptop avatar Feb 17 '14 22:02 morrislaptop

Looks like the git submodule issue has been resolved: https://github.com/i-ekho/capistrano-git-submodule-strategy

cromulus avatar Sep 25 '14 16:09 cromulus