From 2e7777d8a76b52bd76fee5f6534d71e0f551ee66 Mon Sep 17 00:00:00 2001 From: Anas TIOUR Date: Tue, 20 Sep 2022 09:00:49 +0100 Subject: [PATCH] docs: add command to copy settings file (#780) * docs: add command to copy settings file * included a step to copy setting file during docker build Co-authored-by: Amos Njoroge --- README.md | 1 + docs/installation.md | 5 ++++- requirements.txt | 2 +- start.sh | 6 ++++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01f143e5..8cdc4210 100755 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ Clone the repository and launch Activity and its PostgreSQL database using the f ```bash git clone --branch develop https://github.com/hikaya-io/activity.git && cd activity +cp activity/settings/local-sample.py activity/settings/local.py docker-compose up ``` diff --git a/docs/installation.md b/docs/installation.md index bd0be71b..22188d76 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -8,7 +8,10 @@ ## Recommended setup -docker-compose up -d +```bash +cp activity/settings/local-sample.py activity/settings/local.py +docker-compose up +``` This will launch the Activity app and a PostgreSQL database. diff --git a/requirements.txt b/requirements.txt index 838927e3..c7c2be76 100644 --- a/requirements.txt +++ b/requirements.txt @@ -107,7 +107,7 @@ pillow==8.3.2 # via # -r requirements.in # cairosvg -psycopg2-binary==2.8.4 +psycopg2-binary>=2.8,<2.9 # via -r requirements.in pycparser==2.20 # via cffi diff --git a/start.sh b/start.sh index ff7cae7a..53d975c1 100644 --- a/start.sh +++ b/start.sh @@ -1,5 +1,11 @@ #!/bin/sh +echo "+++++++++++++++++ Copy Settings File ++++++++++++++++++++++++" +ls activity/settings/ +cp activity/settings/local-sample.py activity/settings/local.py +ls activity/settings/ +echo "------------------- Copying Settings file Done!!! ------------------------" + echo "+++++++++++++++++ Initialize database migrations ++++++++++++++++++++++++" python manage.py makemigrations echo "------------------- Initialize database migrations Done!!! ------------------------"