ReleaseEngineering/How To/Restart BuildAPI: Difference between revisions

correct to use pip from the virtualenv
(correct which directory to be in when restarting app, and compute current build #)
(correct to use pip from the virtualenv)
Line 26: Line 26:
# cd /data/releng/src/buildapi
# cd /data/releng/src/buildapi
# echo "# <user> restarting bug XXXX" >> production.ini
# echo "# <user> restarting bug XXXX" >> production.ini
# ./update buildapi $(pip freeze | grep buildapi | sed 's,[^0-9]\+,,')
# ./update buildapi $(./virtualenv/bin/pip freeze | grep buildapi | sed 's,[^0-9]\+,,')
</pre>
</pre>
You'll know that buildapi has been restarted if you see the following output reported for all web hosts:
You'll know that buildapi has been restarted if you see the following output reported for all web hosts:
Confirmed users
1,364

edits