-
create db (pg)
-
install python dependency, maybe you need
virtualenv
.pip install -r requirements/common.txt
-
django migrate
django manage.py migrate --settings=settings.local
-
init k8s resource
python manage.py k8s_resource_init --settings=settings.local
-
run server
python manage.py runserver 0.0.0.0:5000 --settings=settings.local
- create db (pg)
- create .env file
echo "DJANGO_SETTINGS_MODULE=settings.local" > .env
- run server
docker-compose build --build-arg MODE=prod web docker-compose up -d
- Please configure Django ALLOWED_HOSTS
- If you run on mac, please configure shared path
- Don't forget to create
logs
dir when run local