Commit 67a06969 authored by Florian's avatar Florian

Add preconditions for running with Docker

parent 859525be
......@@ -2,13 +2,13 @@
Add the required packages:
```
```bash
apt install python3-django python3-djangorestframework
```
Setup the project:
```
```bash
git clone https://lab.allmende.io/balkansalat/commoning-engine.git
cd commoning-engine
python3 manage.py migrate
......@@ -16,7 +16,7 @@ python3 manage.py migrate
Run the development server:
```
```bash
python3 manage.py runserver
```
......@@ -24,8 +24,13 @@ Now you may visit [localhost:8000/api/v1/](localhost:8000/api/v1/) for access to
# Run with Docker
- start with `sudo docker-compose up -d`
- create user with `sudo docker exec -ti app python /app/commoning-engine/manage.py createsuperuser`
- if you encounter a Django error regarding the `ALLOWED_HOSTS` setting, uncomment the lines in the `Dockerfile` and build again with `sudo docker-compose up -d --build`
Clone project, change working directory, start and create user:
```bash
git clone https://lab.allmende.io/balkansalat/commoning-engine.git
cd commoning-engine/
sudo docker-compose up -d
sudo docker exec -ti app python /app/commoning-engine/manage.py createsuperuser
```
If you encounter a Django error regarding the `ALLOWED_HOSTS` setting, uncomment the lines in the `Dockerfile` and build again with `sudo docker-compose up -d --build`
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment