Commit d9a250aa authored by Sergio Alonso's avatar Sergio Alonso

make: use makefile to easy automate build and deploy application

parent c6ffe667
.PHONY: help
#default: run
default: help
DATABASE_NAME="educational_heritage/db.sqlite3"
help:
@echo "help - Show this help"
@echo "configure - Create configuration files"
@echo "db - Init database"
@echo "run - Start server"
configure:
python configure.py
@echo "Next:"
@echo "make db"
db:
rm -f $(DATABASE_NAME)
python manage.py makemigrations --settings=educational_heritage.settings.local
python manage.py migrate --settings=educational_heritage.settings.local
sqlite3 $(DATABASE_NAME) < seed.sql
@echo "Next:"
@echo "make run"
run:
python manage.py runserver_plus --cert /tmp/cert --settings=educational_heritage.settings.local 0.0.0.0:8000
clean:
find . -name "*.pyc" -print0 | xargs -0 rm
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment