Skip to content
Snippets Groups Projects
Verified Commit 89ffdccc authored by Jan Maximilian Michal's avatar Jan Maximilian Michal
Browse files

Moved the first bunch of files

parent 07bdd0b9
No related branches found
No related tags found
1 merge request!19Whitenoise
Showing
with 13 additions and 61 deletions
......@@ -4,14 +4,14 @@ DB_NAME = postgres
.PHONY: collectstatic run install migrations-check isort isort-check
collectstatic: # used only in production
./backend/manage.py collectstatic --ignore node_modules
./manage.py compress --force
python manage.py collectstatic --ignore node_modules
python manage.py compress --force
run:
python backend/manage.py runserver 0.0.0.0:8000
python manage.py runserver 0.0.0.0:8000
migrations-check:
python backend/manage.py makemigrations --check --dry-run
python manage.py makemigrations --check --dry-run
isort:
isort -rc $(APP_LIST)
......@@ -20,29 +20,23 @@ isort-check:
isort -c -rc $(APP_LIST)
loaddata:
./backend/manage.py loaddata core/fixtures/testdata-groups.json
python manage.py loaddata core/fixtures/testdata-groups.json
loadexamples:
./backend/manage.py loaddata core/fixtures/testdata-user.json
./backend/manage.py loaddata core/fixtures/testdata-core.json
python manage.py loaddata core/fixtures/testdata-user.json
python manage.py loaddata core/fixtures/testdata-core.json
install:
pip install -r backend/requirements.txt
yarn --cwd frontend/
yarn --cwd backend/
pip install -r requirements.txt
yarn
test:
python backend/manage.py run test
python manage.py test
coverage:
coverage run backend/manage.py test
coverage run manage.py test
coverage report
docker-db-create:
docker create --name $(DB_NAME) -p 5432:5432 postgres:9.5
db:
docker run --rm --name $(DB_NAME) -p 5432:5432 postgres:9.5
docker-db-start:
docker start $(DB_NAME)
docker-db-stop:
docker stop $(DB_NAME)
APP_LIST ?= core grady util
DB_NAME = postgres
.PHONY: collectstatic run install migrations-check isort isort-check
collectstatic: # used only in production
python manage.py collectstatic --ignore node_modules
python manage.py compress --force
run:
python manage.py runserver 0.0.0.0:8000
migrations-check:
python manage.py makemigrations --check --dry-run
isort:
isort -rc $(APP_LIST)
isort-check:
isort -c -rc $(APP_LIST)
loaddata:
python manage.py loaddata core/fixtures/testdata-groups.json
loadexamples:
python manage.py loaddata core/fixtures/testdata-user.json
python manage.py loaddata core/fixtures/testdata-core.json
install:
pip install -r requirements.txt
yarn
test:
python manage.py test
coverage:
coverage run manage.py test
coverage report
db:
docker run --rm --name $(DB_NAME) -p 5432:5432 postgres:9.5
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment