Skip to content

Commit 89d298a

Browse files
committed
Gunicorn configs.
1 parent 626a9a1 commit 89d298a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""App configuration."""
22

3-
import subprocess
43
from os import environ, path
54

65
import redis

gunicorn.conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
proc_name = "flasksession"
1515
wsgi_app = "wsgi:app"
16-
bind = "unix:flask.sock"
16+
bind = ["unix:flask.sock"]
1717
threads = 2
1818
workers = 1
1919

@@ -24,6 +24,7 @@
2424
bind = ["127.0.0.1:8000"]
2525
elif ENVIRONMENT == "production":
2626
daemon = True
27+
logconfig = "/var/log/flasksession/info.log"
2728
accesslog = "/var/log/flasksession/access.log"
2829
errorlog = "/var/log/flasksession/error.log"
2930
loglevel = "trace"

0 commit comments

Comments
 (0)