|
|
|
|
@ -25,31 +25,31 @@ requirements-local: |
|
|
|
|
|
|
|
|
|
# target: loaddata - Load fixtures
|
|
|
|
|
loaddata: |
|
|
|
|
python manage.py loaddata src/myauth/fixtures/myauth.json
|
|
|
|
|
python manage.py loaddata src/commons/fixtures/cms.json
|
|
|
|
|
python manage.py loaddata src/commons/fixtures/djangocms_text_ckeditor.json
|
|
|
|
|
python manage.py loaddata src/commons/fixtures/sites.json
|
|
|
|
|
python manage.py loaddata src/customer/fixtures/price.json
|
|
|
|
|
python manage.py loaddata src/docs/fixtures/country.json
|
|
|
|
|
python manage.py loaddata src/docs/fixtures/currency.json
|
|
|
|
|
python manage.py loaddata src/docs/fixtures/measure.json
|
|
|
|
|
python3 manage.py loaddata src/myauth/fixtures/myauth.json
|
|
|
|
|
python3 manage.py loaddata src/commons/fixtures/cms.json
|
|
|
|
|
python3 manage.py loaddata src/commons/fixtures/djangocms_text_ckeditor.json
|
|
|
|
|
python3 manage.py loaddata src/commons/fixtures/sites.json
|
|
|
|
|
python3 manage.py loaddata src/customer/fixtures/price.json
|
|
|
|
|
python3 manage.py loaddata src/docs/fixtures/country.json
|
|
|
|
|
python3 manage.py loaddata src/docs/fixtures/currency.json
|
|
|
|
|
python3 manage.py loaddata src/docs/fixtures/measure.json
|
|
|
|
|
|
|
|
|
|
# target: run - Runserver
|
|
|
|
|
run: |
|
|
|
|
python manage.py runserver 0.0.0.0:8000
|
|
|
|
|
python3 manage.py runserver 0.0.0.0:8000
|
|
|
|
|
|
|
|
|
|
# target: migrate - Build all docker containers, defined in docker-compose.stage.yml
|
|
|
|
|
migrate: |
|
|
|
|
python manage.py migrate myauth --noinput
|
|
|
|
|
python manage.py migrate --noinput
|
|
|
|
|
python3 manage.py migrate myauth --noinput
|
|
|
|
|
python3 manage.py migrate --noinput
|
|
|
|
|
|
|
|
|
|
# target: shell - Run python shell
|
|
|
|
|
shell: |
|
|
|
|
python manage.py shell
|
|
|
|
|
python3 manage.py shell
|
|
|
|
|
|
|
|
|
|
# target: collectstatic - Run collectstatic
|
|
|
|
|
collectstatic: |
|
|
|
|
python manage.py collectstatic --noinput
|
|
|
|
|
python3 manage.py collectstatic --noinput
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean_temp: |
|
|
|
|
|