Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7664e99

Browse files
Modify config values.
1 parent 9b48a54 commit 7664e99

File tree

4 files changed

+4
-18
lines changed

4 files changed

+4
-18
lines changed

‎config.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class Config:
1414
"""Set Flask configuration variables from .env file."""
1515

1616
# General Config
17+
APPLICATION_NAME = "flasksession"
1718
ENVIRONMENT = environ.get("ENVIRONMENT")
1819

1920
# Flask Config
@@ -37,4 +38,4 @@ class Config:
3738
LESS_RUN_IN_DEBUG = False
3839
STATIC_FOLDER = "static"
3940
TEMPLATES_FOLDER = "templates"
40-
COMPRESSOR_DEBUG = environ.get("COMPRESSOR_DEBUG")
41+
COMPRESSOR_DEBUG = True

‎flask_session_tutorial/templates/analytics.jinja2‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎flask_session_tutorial/templates/layout.jinja2‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
{# Scripts #}
4040
<script src="{{ url_for('static', filename='dist/js/main.min.js') }}"></script>
4141
{% block additionalscripts %}{% endblock %}
42-
{% include 'analytics.jinja2' %}
4342
</body>
4443

4544
</html>

‎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 = 1
18-
workers = 1
17+
threads = 2
18+
workers = 2
1919

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /