Skip to content

gauravbarall/gesan-geodjango-training

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.1%
  • HTML 13.3%
  • Shell 0.6%