2020-04-04 19:34:22 +02:00
|
|
|
REMOTE_HOST := hbbs.decentral1.se
|
|
|
|
SERVER := hbbs.server
|
2020-04-04 18:55:53 +02:00
|
|
|
|
2020-04-04 19:34:22 +02:00
|
|
|
default: serve
|
2020-04-04 18:55:53 +02:00
|
|
|
|
2020-04-04 19:34:22 +02:00
|
|
|
.PHONY: serve
|
|
|
|
serve:
|
2020-04-04 18:55:53 +02:00
|
|
|
@FLASK_ENV=development FLASK_APP=$(SERVER) flask run
|
|
|
|
|
2020-04-04 19:34:22 +02:00
|
|
|
.PHONY: hbbs
|
|
|
|
hbbs:
|
2020-04-04 19:35:02 +02:00
|
|
|
@fab -H $(REMOTE_HOST) hbbs
|
2020-04-05 13:08:03 +02:00
|
|
|
|
|
|
|
.PHONY: setup
|
|
|
|
setup:
|
|
|
|
@python3 -m virtualenv .venv && .venv/bin/pip install -r requirements.txt
|