-
Notifications
You must be signed in to change notification settings - Fork 91
Task wp:core:update trying to run on production instead of on my workstation #127
Comments
Hi @cec the The |
Hi @lukewhitehouse I now noticed that Regarding the Do you think it might be worth it to mention these conflicts in the section about updating wordpress? Because in the wiki, the example is using the staging environment and this won't fix the conflict in production (if I understand correctly). |
Hi @cec and @lukewhitehouse, I concur with @cec's opinion, that this should be mentioned in the "Updating WordPress Core" section.
From the above segment in the docs I was left with the impression, that the stage does not make any difference at all when you update WP and you just have to commit and push to the respective branch and then deploy. And this went fine the first time I updated WP (running just
Luckily @cec's above answer pointed me in the right direction in the end (after quite some googling) and all I had to do to fix it was run I just think it would be good to mention this in the docs. Thanks! |
@cec, @inedev sorry for the massive delay, this has been added to the Usage guide as requested. |
@lukewhitehouse @inedev thank you both guys |
Hi,
given how capistrano works, to update WP one should update it locally with the built-in task, then add the changed submodule, make a new commit and deploy to production.
If this is correct, one should expect
wp:core:update
to run locally.However if I try to run it with
cap staging wp:core:update
, it attempts to update WP on my staging environment (asks SSH credentials to our staging server).From the task's definition, I can tell that this is actually running on the server for the specified stage:
The task's body should be wrapped inside a block passed to
run_locally
like inwp:setup:local
.With the final result looking something like this:
I commented out cache:repo:purge, because I don't understand why the website's repo should be removed. Wouldn't this considerably slow-down deploys?
Did I completely misunderstood the logic of the update process?
If not, can this be fixed? I'd be happy to send a PR with the change if you want me to (in this way I could give something back to the awesome tool you shared with the community).
Thank you very much for this great piece of work.
Cheers,
Cec
The text was updated successfully, but these errors were encountered: