Skip to content

Commit

Permalink
updated initial docker startup steps
Browse files Browse the repository at this point in the history
  • Loading branch information
skngetich committed Jul 20, 2023
1 parent ea3ac4f commit 6f44b19
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,18 @@ Install `Docker <https://www.docker.com/get-docker>`_ and `Docker Compose <https
docker-compose up
# create super user
# Start a bash/sh shell that you can intract with on the api contianer
docker exec -it onadata-api-1 bash
# Make changes(add fields and models) to the database
# -----------------
docker exec -it onadata_web_1 bash
python3.9 manage.py migration
# activate virtual envirenment
source /srv/.virtualenv/bin/activate
# create super user
# -----------------
python3.9 manage.py createsuperuser
python manage.py createsuperuser
It should be accessible via http://localhost:8000. The settings are in
`onadata/settings/docker.py <onadata/settings/docker.py>`_.
Expand Down

0 comments on commit 6f44b19

Please sign in to comment.