Skip to content

Commit ec1532f

Browse files
committed
Release v1.0.11 - Added Page Compression (PROD)
1 parent aeda293 commit ec1532f

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## [1.0.11] 2022-12-31
4+
### Changes
5+
6+
- Added page compression for PRODUCTION env
7+
- `DEBUG=False`
8+
39
## [1.0.10] 2022-12-31
410
### Changes
511

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ Open-Source **Flask Dashboard** generated by the `AppSeed` platform with basic m
1010
> 🚀 Built with [App Generator](https://appseed.us/generator), timestamp `2022-06-23 18:20`
1111
1212
-`Up-to-date dependencies`
13-
- ✅ Database: `SQLite`, MySql
13+
-`Database`: `SQLite`, MySql
14+
- Silent fallback to `SQLite`
1415
-`DB Tools`: SQLAlchemy ORM, `Flask-Migrate`
1516
-`Authentication`, Session Based, `OAuth` via **Github**
1617
-`Dark Mode` (persistent)
1718
- ✅ Docker, `Flask-Minify` (page compression)
19+
- 🚀 `Deployment`
20+
- `CI/CD` flow via `Render`
1821

1922
<br />
2023

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jinja2==3.0.3
1111
flask-restx==0.5.1
1212
Werkzeug==2.0.3
1313
python-dotenv==0.19.2
14+
Flask-Minify==0.37
1415
Flask-Dance==5.1.0
1516
blinker==1.4
1617
pyOpenSSL

run.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import os
77
from flask_migrate import Migrate
8+
from flask_minify import Minify
89
from sys import exit
910

1011
from apps.config import config_dict
@@ -27,10 +28,14 @@
2728
app = create_app(app_config)
2829
Migrate(app, db)
2930

31+
if not DEBUG:
32+
Minify(app=app, html=True, js=False, cssless=False)
33+
3034
if DEBUG:
31-
app.logger.info('DEBUG = ' + str(DEBUG) )
32-
app.logger.info('DBMS = ' + app_config.SQLALCHEMY_DATABASE_URI)
33-
app.logger.info('ASSETS_ROOT = ' + app_config.ASSETS_ROOT )
35+
app.logger.info('DEBUG = ' + str(DEBUG) )
36+
app.logger.info('Page Compression = ' + 'FALSE' if DEBUG else 'TRUE' )
37+
app.logger.info('DBMS = ' + app_config.SQLALCHEMY_DATABASE_URI)
38+
app.logger.info('ASSETS_ROOT = ' + app_config.ASSETS_ROOT )
3439

3540
if __name__ == "__main__":
3641
app.run()

0 commit comments

Comments
 (0)