Add sync_from_live_addon

main
jay 2023-08-10 15:38:42 +00:00
parent 658aefb7b7
commit 0f9dbd70d4
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
type: update
name: Sync From Live
description: Sync from live environment
targetNodes:
nodeGroup: cp
actions:
liveSync:
- nodeGroup: cp
cmd: |-
cp -R -u /var/www/webroot/sourcefiles/* /var/www/webroot/ROOT && cd /var/www/webroot/ROOT/ && wp db import /var/www/webroot/sourcefiles/dbexport/dbexport.sql --quiet
buttons:
- caption: Sync From Live
action: liveSync
loadingText: Syching from live...
confirmText: Do you want to initiate sync process?
successText: The syching process has been finished successfully.