Skip to content

Commit

Permalink
Release v1.0.11 - Added Page Compression (PROD)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-generator committed Dec 31, 2022
1 parent aeda293 commit ec1532f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [1.0.11] 2022-12-31
### Changes

- Added page compression for PRODUCTION env
- `DEBUG=False`

## [1.0.10] 2022-12-31
### Changes

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

<br />

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jinja2==3.0.3
flask-restx==0.5.1
Werkzeug==2.0.3
python-dotenv==0.19.2
Flask-Minify==0.37
Flask-Dance==5.1.0
blinker==1.4
pyOpenSSL
Expand Down
11 changes: 8 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import os
from flask_migrate import Migrate
from flask_minify import Minify
from sys import exit

from apps.config import config_dict
Expand All @@ -27,10 +28,14 @@
app = create_app(app_config)
Migrate(app, db)

if not DEBUG:
Minify(app=app, html=True, js=False, cssless=False)

if DEBUG:
app.logger.info('DEBUG = ' + str(DEBUG) )
app.logger.info('DBMS = ' + app_config.SQLALCHEMY_DATABASE_URI)
app.logger.info('ASSETS_ROOT = ' + app_config.ASSETS_ROOT )
app.logger.info('DEBUG = ' + str(DEBUG) )
app.logger.info('Page Compression = ' + 'FALSE' if DEBUG else 'TRUE' )
app.logger.info('DBMS = ' + app_config.SQLALCHEMY_DATABASE_URI)
app.logger.info('ASSETS_ROOT = ' + app_config.ASSETS_ROOT )

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

0 comments on commit ec1532f

Please sign in to comment.