-
Notifications
You must be signed in to change notification settings - Fork 1
Emergency wp cli recipes
Ben Fenster edited this page Apr 6, 2022
·
7 revisions
To start a manual alert on the www.bu.edu network (untested):
/fs/prod/scratch/shared/bin/wp alert start-manual --url="http://www.bu.edu" --path="/var/www/cms-prod/current/" "This is the alert message to display"
/fs/prod/scratch/shared/bin/wp alert start-manual --url="http://www.bumc.bu.edu" --path="/var/www/cms-prod/current/" "This is the alert message to display"
To stop all alerts in prod:
/fs/prod/scratch/shared/bin/wp alert stop-all --url="http://www.bu.edu" --path="/var/www/cms-prod/current/"
To start a manual alert on the www-test network (tested):
/fs/test/scratch/shared/bin/wp alert start-manual --url="http://www-test.bu.edu" --path="/var/www/cms-test/current/" "This is the alert message to display"
To stop all alerts in test:
/fs/test/scratch/shared/bin/wp alert stop-all --url="http://www-test.bu.edu" --path="/var/www/cms-test/current/"
These currently work, but report an error. I don't exactly what the error means, I think it may be due to the way the homepage lambda trigger echo
s output. The commands do work in my testing so far.