crawlerApp/Makefile

18 lines
502 B
Makefile
Raw Normal View History

2022-02-20 18:11:15 +00:00
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