Group: Member
Post Group: Newbie
Posts: 2
Status:
|
Is it possible to automatically run some wp-cli commands after staging. This would make your Wordpress staging even more useful.
This is my ideal workflow:- Click "Create Staging" button.
- The staging instance is created and then two wp_cli commands are automatically run:
i) wp plugin deactivate plugin1 plugin2
ii) wp db query "SQL query to update plugin keys"
- Make changes on staging instance.
- Click "Push to live"
- The staging instance is piushed to live and then two wp_cli commands are automatically run:
i) wp plugin activate plugin1 plugin2
ii) wp db query "SQL query to update plugin keys"
|