Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1 KB

readme.md

File metadata and controls

45 lines (31 loc) · 1 KB

Backend Application

Start application

cd deployments
docker-compose build
docker-compose run web install
docker-compose run web migrate
docker-compose run web build
docker-compose up -d

First run

cd deployments
ln -s `pwd`/docker-compose-local.yml docker-compose.override.yml
docker-compose exec db mysql -e "create database catalog"
docker-compose exec web pipenv run python manage.py createsuperuser
docker-compose exec web pipenv run python manage.py createcachetable

Development

# make app migrations
docker-compose exec web \
    pipenv run python manage.py makemigrations artists

Translations

# create/update languages
django-admin makemessages -l pt_BR
# compile languages
django-admin compilemessages

Debug Django

docker ps
docker attach $containerID
# quit with ctrl+p ctrl+q

Frontend Application

Frontends only

cd deployments
docker-compose run --no-deps -p 5173:5173 web frontend