blob: 87d5b6bbf4b160dfc296e30e2434858d512f818f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Makefile
## Configuration
PROJECT := $(shell basename $(PWD))
## Install Dependencies
.PHONY: install
install:
pip install -r requirements.txt
## Create Database
.PHONY: db
db:
cd app && ln -sf config_dev.py config.py
FLASK_APP=app python -m flask database create
## Start Dev Server with Hot-Reloading
.PHONY: dev
dev:
cd app && ln -sf config_dev.py config.py
FLASK_APP=app python -m flask run --reload --debugger --extra-files ./app/templates/base.html:./app/templates/contact.html:./app/templates/index.html
|