Skip to content

Commit

Permalink
docs: add command to copy settings file (#780)
Browse files Browse the repository at this point in the history
* docs: add command to copy settings file

* included a step to copy setting file during docker build

Co-authored-by: Amos Njoroge <sannleen@gmail.com>
  • Loading branch information
TAnas0 and amosnjoroge authored Sep 20, 2022
1 parent abdcd53 commit 2e7777d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
5 changes: 4 additions & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -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!!! ------------------------"
Expand Down

0 comments on commit 2e7777d

Please sign in to comment.