From c5fe610aedec3df794b65d911069c94829b85d18 Mon Sep 17 00:00:00 2001 From: lou Date: Tue, 15 Oct 2024 18:14:29 -0400 Subject: [PATCH] add known issue and solution --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06d650d..13daccf 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,20 @@ chmod +x manage ``` After doing that, you are now ready to use the script. -Usage: `./manage [command] [options]` +## Known issues and suggestions +### Issue 1 +There is a known issue where NodeJS will not wait for the database starts, before polling it. +### Issue 1 Workaround +I suggest doing the following commands to start your server +```bash +# if you haven't yet done this, run ./manage setup +./manage up +# once that command is finished (and waits the 30 seconds for database to come up) +./manage restart --db-alive +``` + +## `manage` usage +`./manage [command] [options]` ## `manage` commands + `./manage up` - Builds the project and starts the server. @@ -126,4 +139,5 @@ Usage: `./manage [command] [options]` # To-Do - [X] Add database support -- [X] Add view counter \ No newline at end of file +- [X] Add view counter +- [ ] Improve `manage` handling of waiting for database to start (switch from predefined number of seconds) \ No newline at end of file