Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push specific plugins/themes #432

Closed
JoshRiser opened this issue Dec 14, 2017 · 11 comments
Closed

Push specific plugins/themes #432

JoshRiser opened this issue Dec 14, 2017 · 11 comments

Comments

@JoshRiser
Copy link

It would be a really nice feature to be able to selectively push or pull a specific plugin or theme. I've had scenarios where I push a plugin updates to the production server and someone added/removed/updated another plugin and it gets overwritten. It would be cool if I could do something like:

wordmove push -e production -p 'plugin-name'

I'm not sure how doing options in ruby scripts work so it might not work exactly like that but you get the point.

@alessandro-fazzi
Copy link
Member

I'll take this one one. But I'll take in consideration that in your scenario a shared GiT repo would almost solve the problem :)

@JoshRiser
Copy link
Author

Great point. Would be cool then to also integrate git into wordmove but maybe I'm just getting lazy at that point ;P

@alessandro-fazzi
Copy link
Member

With the new hook system you could also try to invent some kind of integration :)

@JoshRiser
Copy link
Author

Well that does look promising. Will definitely be working with that.

@colin-marshall
Copy link

@pioneerskies would it be possible do something like this with selective tables of the database? For example, only push/pull posts.

Sometimes I'm working on sites locally and have changed something like plugin settings, and there will also be posts that the client added on the production site that I don't have locally. That leaves me with database changes on both sites that need to be merged.

It looks like the WP-CLI can do this already so it might not be too difficult to implement.

@alessandro-fazzi
Copy link
Member

Hi @colin-marshall :)

it would be possible, but it is really OT here. I'm thinking about an implementation that should cover your request and the request to dump prefixed tables ( #243 (your) #442 and #219 ).

Please, let's continue discussion in #442

@debonx
Copy link

debonx commented Jul 31, 2019

Is this still on progress? Thanks

@alessandro-fazzi
Copy link
Member

alessandro-fazzi commented Nov 27, 2019

Working with @huraji on #551 we "discovered" an apparently stable approach to achieve this feature using the exclude section in movefile.yml:

exclude:
  - "+ wp-content/plugins/plugin_1/"
  - "+ wp-content/plugins/plugin_2/"
  - "wp-content/plugins/*"

will ignore all the plugins but the one expressed with the trailing + sign.

Hope it could be useful for others

P.S.: this is not a new feature: is just rsync's black magic

@alessandro-fazzi
Copy link
Member

@debonx
Copy link

debonx commented Nov 28, 2019

Doc added https://github.com/welaika/wordmove/wiki/Work-only-on-specific-plugins-or-themes and linked in https://github.com/welaika/wordmove/wiki/movefile.yml-configurations-explained

Thanks @pioneerskies. Very useful if some maintains a lot of sub repositories within the same WP instance.

@alessandro-fazzi
Copy link
Member

Closing since it's possible to achieve the result w/o a new feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants