You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
|
|
.PHONY: all build up run start stop migrate loaddata collectstatic
|
|
|
|
all: build migrate loaddata
|
|
|
|
build:
|
|
docker-compose build
|
|
|
|
run:
|
|
docker-compose up -d
|
|
|
|
up:
|
|
docker-compose up -d
|
|
|
|
down:
|
|
docker-compose down
|
|
|
|
start:
|
|
docker-compose start
|
|
|
|
stop:
|
|
docker-compose stop
|
|
|
|
migrate:
|
|
docker-compose exec web python src/manage.py migrate myauth
|
|
docker-compose exec web python src/manage.py migrate
|
|
|
|
loaddata:
|
|
docker-compose exec web python src/manage.py loaddata src/myauth/fixtures/myauth.json
|
|
docker-compose exec web python src/manage.py loaddata src/commons/fixtures/cms.json
|
|
docker-compose exec web python src/manage.py loaddata src/commons/fixtures/djangocms_text_ckeditor.json
|
|
docker-compose exec web python src/manage.py loaddata src/commons/fixtures/sites.json
|
|
docker-compose exec web python src/manage.py loaddata src/customer/fixtures/price.json
|
|
docker-compose exec web python src/manage.py loaddata src/docs/fixtures/country.json
|
|
docker-compose exec web python src/manage.py loaddata src/docs/fixtures/currency.json
|
|
docker-compose exec web python src/manage.py loaddata src/docs/fixtures/measure.json
|
|
|
|
collectstatic:
|
|
docker-compose run web python manage.py collectstatic --noinput
|
|
|