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

Command to pull WordPress core version from production #106

Open
TeemuSuoranta opened this issue Aug 9, 2019 · 2 comments

Comments

@TeemuSuoranta
Copy link

commented Aug 9, 2019

The vagrant box comes with commands to pull database and plugins from production site. It would be nice to be able to also pull the WordPress core version (and update it to composer.json like plugins if possible). The core version in composer.json will easily lag behind of production and it is thus easy to accidentally run locally different version of core than in production.

In most of the cases you could just run wp core update locally because generally the production sites use the newest version although there can be issues with automated tests for example that will make core to be some minor updates behind.

@ottok

This comment has been minimized.

Copy link
Member

commented Aug 9, 2019

Like wp-pull-everything?

@TeemuSuoranta

This comment has been minimized.

Copy link
Author

commented Aug 9, 2019

There could be combined pull, too.

For wp-pull-production-core could basically connect via ssh, run wp core version, return the value and run wp core update --version={version} --force if it's difficult to do via rsync. Though there could be errors if running wp core version outputs some warnings and not just the version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.