From a45effbd2be48cc9b58e2315b8c6e5671dab032d Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Tue, 3 Jun 2025 07:49:29 +1000 Subject: [PATCH] Update the README --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e849ff20..463b5ce9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,26 @@ # cmc-sales +## Development Docker compose instructions -## Install +``` shell +git clone git@code.springupsoftware.com:cmc/cmc-sales.git +cd cmc-sales +rsync -avz --progress cmc@sales.cmctechnologies.com.au:~/backups . +docker compose up +# DB password is in config/database.php because..reasons. +# TODO move it to an environment var and rotate it.. +gunzip < backups/backup_*.sql.gz | mariadb -h 127.0.0.1 -u cmc -p cmc + +# edit your dev machine /etc/hosts and add +127.0.0.1 cmclocal + +# open up cmclocal in your browser.. hopefully it'll work. +``` + + +## Install a new server + +(TODO this is all likely out of date) ### Requirements