experimenter/Makefile

48 строки
1.1 KiB
Makefile

secretkey:
openssl rand -hex 24
build:
./scripts/build.sh
compose_build: build
docker-compose build
up: compose_build
docker-compose up
gunicorn: compose_build
docker-compose -f docker-compose.yml -f docker-compose-gunicorn.yml up
test: compose_build
docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 -- coverage run manage.py test;coverage report -m --fail-under=100"
lint: compose_build
docker-compose run app flake8 .
check: compose_build lint test
echo "Success"
makemigrations: compose_build
docker-compose run app python manage.py makemigrations
migrate: compose_build
docker-compose run app sh -c "/app/bin/wait-for-it.sh db:5432 -- python manage.py migrate"
createuser: compose_build
docker-compose run app python manage.py createsuperuser
shell: compose_build
docker-compose run app python manage.py shell
dbshell: compose_build
docker-compose run app python manage.py dbshell
bash: compose_build
docker-compose run app bash
kill:
docker ps -a -q | xargs docker kill;docker ps -a -q | xargs docker rm
ssl:
openssl req -x509 -newkey rsa:4096 -keyout nginx/key.pem -out nginx/cert.pem -days 365 -nodes