Skip to content

Commit 88b79a9

Browse files
committed
Resolve breaking issues.
1 parent 082a344 commit 88b79a9

File tree

8 files changed

+504
-412
lines changed

8 files changed

+504
-412
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ env.bak/
9090
venv.bak/
9191
.creds/
9292
.creds
93+
ca-cerificate.crt
94+
**/ca-cerificate.crt
9395

9496
# Spyder project settings
9597
.spyderproject

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Flask-Session Tutorial
22

3-
![Python](https://img.shields.io/badge/Python-v^3.10-blue.svg?logo=python&longCache=true&logoColor=white&colorB=5e81ac&style=flat-square&colorA=4c566a)
4-
![Flask](https://img.shields.io/badge/Flask-v^3.0.0-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
5-
![Flask-Login](https://img.shields.io/badge/Flask--Login-v0.6.2-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
6-
![Flask-Session](https://img.shields.io/badge/Flask--Session-v0.5.0-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
7-
![Flask-SQLAlchemy](https://img.shields.io/badge/Flask--SQLAlchemy-v3.0.5-red.svg?longCache=true&style=flat-square&logo=scala&logoColor=white&colorA=4c566a&colorB=bf616a)
8-
![Redis](https://img.shields.io/badge/Redis-v5.0.0-red.svg?longCache=true&style=flat-square&logo=redis&logoColor=white&colorA=4c566a&colorB=bf616a)
3+
![Python](https://img.shields.io/badge/Python-v^3.12-blue.svg?logo=python&longCache=true&logoColor=white&colorB=5e81ac&style=flat-square&colorA=4c566a)
4+
![Flask](https://img.shields.io/badge/Flask-v^3.1.1-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
5+
![Flask-Login](https://img.shields.io/badge/Flask--Login-v0.6.3-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
6+
![Flask-Session](https://img.shields.io/badge/Flask--Session-v0.8.0-blue.svg?longCache=true&logo=flask&style=flat-square&logoColor=white&colorB=5e81ac&colorA=4c566a)
7+
![Flask-SQLAlchemy](https://img.shields.io/badge/Flask--SQLAlchemy-v3.1.1-red.svg?longCache=true&style=flat-square&logo=scala&logoColor=white&colorA=4c566a&colorB=bf616a)
8+
![Redis](https://img.shields.io/badge/Redis-v6.2.0-red.svg?longCache=true&style=flat-square&logo=redis&logoColor=white&colorA=4c566a&colorB=bf616a)
99
![GitHub Last Commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square&colorA=4c566a&colorB=a3be8c&logo=GitHub)
1010
[![GitHub Issues](https://img.shields.io/github/issues/hackersandslackers/flask-session-tutorial.svg?style=flat-square&colorA=4c566a&logo=GitHub&colorB=ebcb8b)](https://github.com/hackersandslackers/flask-session-tutorial/issues)
1111
[![GitHub Stars](https://img.shields.io/github/stars/hackersandslackers/flask-session-tutorial.svg?style=flat-square&colorA=4c566a&logo=GitHub&colorB=ebcb8b)](https://github.com/hackersandslackers/flask-session-tutorial/stargazers)

config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Config:
1818
ENVIRONMENT = environ.get("ENVIRONMENT")
1919

2020
# Flask Config
21-
FLASK_APP = "main.py"
21+
FLASK_APP = "wsgi.py"
2222
FLASK_DEBUG = environ.get("FLASK_DEBUG")
2323
SECRET_KEY = environ.get("SECRET_KEY")
2424

@@ -33,7 +33,7 @@ class Config:
3333
SQLALCHEMY_ECHO = False
3434

3535
# Flask-Assets (Optional)
36-
LESS_BIN = subprocess.run("which lessc", shell=True, check=True)
36+
LESS_BIN = environ.get("LESS_BIN")
3737
ASSETS_DEBUG = False
3838
LESS_RUN_IN_DEBUG = False
3939
STATIC_FOLDER = "static"

flask_session_tutorial/static/dist/css/dashboard.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gunicorn.conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
proc_name = "flasksession"
1515
wsgi_app = "wsgi:app"
1616
bind = "unix:flask.sock"
17-
threads = 4
18-
workers = 2
17+
threads = 2
18+
workers = 1
1919

2020
if ENVIRONMENT == "development" or ENVIRONMENT is None:
2121
reload = True

0 commit comments

Comments
 (0)