Skip to content

Production Runbook

Ian Mitchell edited this page May 18, 2020 · 2 revisions

Deployment Hooks

Digital Ocean

Aquarius runs on Digital Ocean through Kubernetes. After each commit on the master branch a GitHub Action runs that deploys the bot via Kubernetes.

There is some first time setup required to get this to work. See /kube/README.md for these steps

Restarting Aquarius

If you need to restart Aquarius without redeploying, run the following commands:

$ kubectl scale deployment aquarius --replicas=0
$ kubectl scale deployment aquarius --replicas=1

Scaling down and then scaling up effectively restarts the Node.js application, restarting and reconnecting Aquarius.

Viewing Logs

To tail logs run

$ kubectl logs -f --selector app=aquarius

If you need to view previous logs (for instance, in the case of a crash) you can run

$ kubectl logs --tail=50 -f --selector app=aquarius

Other Hosts

Aquarius runs perfectly fine on other hosts as well. You just need the environmental variables configured - after that, initialize the bot with

$ yarn start

For information on how to interact with Aquarius on Discord, please visit https://aquarius.sh/docs

Clone this wiki locally