Skip to content

Emergency wp cli recipes

Ben Fenster edited this page Apr 6, 2022 · 7 revisions

PROD

Starting an alert

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"

Stopping an alert

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/"

TEST

Starting an alert

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"

Stopping an Alert

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/"

Errors

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 echos output. The commands do work in my testing so far.