From 5af898a7024762c18f349bd43a7aaf58122ac087 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Fri, 27 Mar 2026 14:43:51 -0400 Subject: [PATCH] fix: readme fixed install and setup commands --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b30838d..c4c7d7a 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,12 @@ This was my first publicly available docker container so I did not realize what 5. [`compose.shared-db.yml`](https://gitea.rkprather.com/ryan/sermon-notes/raw/branch/main/docker/compose.shared-db.yml) - compose file with no database image because you are planning on using an existing database container or bare metal server 4. Pull the image `docker pull gitea.rkprather.com/ryan/sermon-notes:latest` 5. **NOTE: IF UPGRADING SKIP THIS STEP!!!** - Run the setup script, this will setup your .env file so that when you start the container everything will be where it is supposed to be. - - `docker run --rm -it -v ${PWD}/.env:/var/www/html/.env gitea.rkprather.com/ryan/sermon-notes:latest /var/www/html/setup.php --{database-type} {--shared}` + - `docker run --rm -it -v ${PWD}/.env:/var/www/html/.env gitea.rkprather.com/ryan/sermon-notes:latest php /var/www/html/setup.php --{database-type} {--shared}` - `{database-type}` = `sqlite`, `mysql`, `mariadb`, or `pgsql` - If you intend on this being connected to a shared database make sure that you specify `--shared`. 6. Start the container with compose `docker compose up -d` -7. **NOTE: IF UPGRADING SKIP THIS STEP!!!** Run `docker exec -it sermon-notes /var/www/html/install.php`. This will run the `php composer` to populate the database with all the desired reference material. +7. **NOTE: IF UPGRADING SKIP THIS STEP!!!** Run `docker exec -it sermon-notes php /var/www/html/install.php`. This will run the `php composer` to populate the database with all the desired reference material. + - NOTE: You will see deprecation warnings, you can ignore these 8. Once complete you have a running system that you can navigate to in your browser with `http://{ip}:{port}`|`http://{hostname}:{port}`. Then you just need to register for an account. The first account that is created is made an admin so that you can access the `Reference Editor` and update any reference material if necessary. ## Operation