crawlerApp/Makefile
2022-02-20 23:11:15 +05:00

18 lines
No EOL
502 B
Makefile

tag=latest
image=crawlerapp
build:
docker build --force-rm $(options) -t crawlerapp:latest .
compose-start:
docker-compose up --remove-orphans $(options)
compose-stop:
docker-compose down --remove-orphans $(options)
compose-manage-py:
docker-compose run --rm $(options) website /env/bin/python /app/manage.py createsuperuser
migrate:
/env/bin/python /app/manage.py migrate
start-server:
gunicorn --bind :8000 --error-logfile /var/log/gunicorn-error.log --workers 3 crawlerApp.wsgi:application