-
Notifications
You must be signed in to change notification settings - Fork 1
Aministration
You're running your BeerCrackerz instance? Noice. This entry is made to enumerate common administration tasks, and how to perform them well.
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 mainto 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.
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 -rto clear docker images or -
$ /bc.sh -r hardto 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.