Skip to content

Latest commit

 

History

History
executable file
·
73 lines (69 loc) · 1.3 KB

README.md

File metadata and controls

executable file
·
73 lines (69 loc) · 1.3 KB

Install wsl on windows click here

Install docker and docker compose click here

Clone the project

For SSH method

git clone [email protected]:kaditya97/gesan-geodjango-training.git

For https method

git clone https://github.com/kaditya97/gesan-geodjango-training.git

Change permission if needed sudo chmod -R 777 gesan-geodjango-training/

Copy Required files

cp docker-compose.sample.yml docker-compose.yml
cp Dockerfile.sample Dockerfile
cp env_sample .env
cp requirements_sample.txt requirements.txt
cp apt_requirements_sample.txt apt_requirements.txt
cp geoserver_env_sample.txt geoserver_env.txt

Start Services

Start services in detach mode

docker compose up -d

Rebuild if required

docker compose build

View Running Services

docker compose ps

View log of a service e.g. web

docker compose logs -f web

Exec services

docker compose exec -it web bash

Stop services

docker compose down

Django server commands

Make migrations

python3 manage.py makemigrations

Migrate to DB

python3 manage.py migrate

Run Server

python3 manage.py runserver