Use ifmain hook to run app

Resolves varia/varia-library-website#1.
This commit is contained in:
Luke Murphy 2020-12-21 19:55:29 +01:00
parent 0e9506e326
commit 13d8d66871
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -5,6 +5,6 @@ setup:
.venv/bin/pip install -r requirements.txt
run:
@FLASK_APP=library.page .venv/bin/flask run
@cd library && python page.py
.PHONY: setup run