18 lines
No EOL
502 B
Makefile
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
|