wip: programme
This commit is contained in:
parent
7d9586a6f2
commit
a8b8b2615d
8
Makefile
8
Makefile
@ -1,4 +1,4 @@
|
|||||||
.PHONY: clean install run stop
|
.PHONY: clean distclean install run stop
|
||||||
|
|
||||||
install:
|
install:
|
||||||
set -e ;\
|
set -e ;\
|
||||||
@ -35,9 +35,11 @@ clean:
|
|||||||
-set -e ;\
|
-set -e ;\
|
||||||
THSF_DIR=$$(pwd); \
|
THSF_DIR=$$(pwd); \
|
||||||
echo [+] Nettoyage dans $$THSF_DIR; \
|
echo [+] Nettoyage dans $$THSF_DIR; \
|
||||||
rm -Rf ./build ;\
|
rm -Rf ./build ./src/thsf.egg-info ./thsf.pid ./thsf.log; \
|
||||||
rm -Rf ./src/thsf.egg-info; \
|
|
||||||
. thsf_venv/bin/activate; \
|
. thsf_venv/bin/activate; \
|
||||||
pip3 uninstall thsf -y
|
pip3 uninstall thsf -y
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
rm -Rf thsf_venv/
|
||||||
|
|
||||||
all: stop clean install run
|
all: stop clean install run
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
build
|
build
|
||||||
wheel
|
wheel
|
||||||
flask
|
flask
|
||||||
|
Flask-Minify
|
||||||
gunicorn
|
gunicorn
|
||||||
pyYAML
|
pyYAML
|
||||||
requests
|
requests
|
||||||
|
@ -20,6 +20,7 @@ include_package_data = True
|
|||||||
python_requires = >=3.7
|
python_requires = >=3.7
|
||||||
install_requires =
|
install_requires =
|
||||||
flask
|
flask
|
||||||
|
Flask-Minify
|
||||||
gunicorn
|
gunicorn
|
||||||
pyYAML
|
pyYAML
|
||||||
requests
|
requests
|
||||||
|
@ -5,6 +5,7 @@ import logging
|
|||||||
from logging import config
|
from logging import config
|
||||||
import yaml
|
import yaml
|
||||||
from flask import Flask, render_template, redirect, request, url_for
|
from flask import Flask, render_template, redirect, request, url_for
|
||||||
|
from flask_minify import minify
|
||||||
from thsf.backend import Backend
|
from thsf.backend import Backend
|
||||||
from thsf.schedule import Schedule
|
from thsf.schedule import Schedule
|
||||||
from thsf.navbar import Navbar
|
from thsf.navbar import Navbar
|
||||||
@ -23,7 +24,7 @@ class AppConfig:
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
logger = logging.getLogger('wsgi')
|
logger = logging.getLogger('wsgi')
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
minify(app=app, html=True, js=True, cssless=True)
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# -- Local configuration
|
# -- Local configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user