Skip to content

Aministration

Arthur Beaulieu edited this page Jan 23, 2023 · 1 revision

You're running your BeerCrackerz instance? Noice. This entry is made to enumerate common administration tasks, and how to perform them well.

Updating the instance

When you saw recent changes on the repository and you want them applied on your machine, run the following (use your enviromnent type as last argument) :

  • $ ./bc.sh -q [dev/prod/locprod] to stop runtime
  • $ git pull origin main to fetch latest commit*
  • $ ./bc.sh -b [dev/prod/locprod] to build new content
  • $ ./bc.sh -s [dev/prod/locprod] to run again the instance

* Unles you know what you are doing, we strongly discourages to use any other branch that might exist. The main branch only contains stable version. You might broke your instance otherwise.

Reset the instance

This task will clear the existing database. Only use it if you want to start from scratch your instance as it will erase any existing database.

  • $ ./bc.sh -r to clear docker images or
  • $ /bc.sh -r hard to clear docker image and docker prune (beware of side effects)*

This command will not remove the enviromnent files (in .conf/) so you don't have to run $ ./bc.sh -i [dev/prod/locprod] again.

* If you have several services running with docker on your system, we strongly advise that you docker prune yourself (out of the bc.sh script). We also reccomend to manually clear the BeerCrackerz volumes if you want to remove all existing traces of the app.

Clone this wiki locally