Fix wp cli command

main
Anthony 2024-09-01 23:42:20 +08:00
parent 062a27944b
commit 99c42497ca
1 changed files with 3 additions and 3 deletions

View File

@ -186,9 +186,9 @@ actions:
- cmd[cp]:
commands:
- cd /var/www/webroot/ROOT/
- wp search-replace '${settings.old_url}' '${settings.new_url}' --all-tables
- wp transient delete --all
- wp cache flush
- /home/litespeed/bin/wp search-replace '${settings.old_url}' '${settings.new_url}' --all-tables
- /home/litespeed/bin/wp transient delete --all
- /home/litespeed/bin/wp cache flush
- return:
type: info
message: "Search and Replace completed successfully for '${settings.old_url}' with '${settings.new_url}' in all tables. Deleted Transients and Flushed WP Cache"