Skip to content

Commit 25dfbc6

Browse files
committed
We'll need this uWSGI config in our production.ini files.
1 parent 01479ab commit 25dfbc6

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

src/ch15-deploy/final/pypi_deploy/production.ini

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# ############### PRODUCTION / UWSGI SECTION ######################
2+
#
3+
# uWSGI server configuration
4+
###
5+
[uwsgi]
6+
http = 127.0.0.1:9051
7+
master = true
8+
processes = 10
9+
enable-threads = true
10+
11+
harakiri = 60
12+
harakiri-verbose = true
13+
limit-post = 65536
14+
post-buffering = 8192
15+
16+
logto = /apps/logs/pypi/uwsgi.log
17+
log-slow = true
18+
need-app = true
19+
# ############### END PRODUCTION #################################
20+
21+
22+
23+
124
###
225
# app configuration
326
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html

src/ch15-deploy/starter/pypi_deploy/production.ini

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# ############### PRODUCTION / UWSGI SECTION ######################
2+
#
3+
# uWSGI server configuration
4+
###
5+
[uwsgi]
6+
http = 127.0.0.1:9051
7+
master = true
8+
processes = 10
9+
enable-threads = true
10+
11+
harakiri = 60
12+
harakiri-verbose = true
13+
limit-post = 65536
14+
post-buffering = 8192
15+
16+
logto = /apps/logs/pypi/uwsgi.log
17+
log-slow = true
18+
need-app = true
19+
# ############### END PRODUCTION #################################
20+
21+
22+
23+
124
###
225
# app configuration
326
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html

0 commit comments

Comments
 (0)