From f3e6a6e71f7466715c39fbe44bbec788a45f26b8 Mon Sep 17 00:00:00 2001 From: mummified-corroding-granny Date: Tue, 20 Dec 2022 00:12:09 +0000 Subject: [PATCH] Fix env file references in startup scripts (#70) Kindly, I have downloaded this here repository again and when to trying to start the thing it did not work on my machine (TM) I noticed that logs in docker compose complaining of multiple things about lacking environment variables I added info to the readme.md about cp This is inline with what is already written in the ubuntu setup script. So it should be good. Now for the part in doubt ... Then I noticed that there were two more references to "env" instead of ".env" in the other scripts and I corrected them too. Check if that is fine with you fine folk (TM) Thanks, granny Co-authored-by: Your Name Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/70 Co-authored-by: mummified-corroding-granny Co-committed-by: mummified-corroding-granny --- readme.md | 6 ++++-- startup.sh | 2 +- startup_chat.sh | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index ed4fabff0..b8cdead66 100644 --- a/readme.md +++ b/readme.md @@ -11,11 +11,13 @@ git clone https://fsdfsd.net/rDrama/rDrama.git cd rDrama +cp env .env + docker-compose down --rmi all --remove-orphans --volumes docker-compose up ``` -3- That's it! Visit `localhost` in your browser and make an account (the first account to be made will have full admin rights) +3- That's it! Visit `http://localhost` in your browser and make an account (the first account to be made will have full admin rights) -4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, edit the variables in the `env` file and then restart the docker container. +4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, edit the variables in the `.env` file and then restart the docker container. diff --git a/startup.sh b/startup.sh index 145ae5a8b..f3e26ab39 100644 --- a/startup.sh +++ b/startup.sh @@ -1,3 +1,3 @@ cd /rDrama -. /env +. ./.env gunicorn files.__main__:app -k gevent -w 3 --reload -b 0.0.0.0:5000 --max-requests 30000 --max-requests-jitter 10000 diff --git a/startup_chat.sh b/startup_chat.sh index 060ee15fc..18b227faf 100644 --- a/startup_chat.sh +++ b/startup_chat.sh @@ -2,7 +2,7 @@ cd /rDrama -. /env +. ./.env PATH="${NVM_DIRECTORY}/versions/node/v${NODE_VERSION}/bin/:${PATH}" cd ./chat