Skip to content

Commit e52cc67

Browse files
committed
Here are the linux server files we need. updated
1 parent 8301d1f commit e52cc67

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

src/ch15-deploy/final/pypi_deploy/.idea/dictionaries/screencaster.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[uwsgi]
66
http = 127.0.0.1:9051
77
master = true
8-
processes = 10
8+
processes = 5
99
enable-threads = true
1010

1111
harakiri = 60

src/ch15-deploy/final/pypi_deploy/server/pypi.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Description=uWSGI PyPI server instance
33
After=syslog.target
44

55
[Service]
6-
ExecStart=/apps/venv/bin/uwsgi -H /apps/venv --ini-paste /apps/app_repo/src/ch15-deploy/final/pypi_deploy/pypi/production.ini
7-
RuntimeDirectory=/apps/app_repo/src/ch15-deploy/final/pypi_deploy/pypi/
6+
ExecStart=/apps/venv/bin/uwsgi -H /apps/venv --ini-paste /apps/app_repo/src/ch15-deploy/final/pypi_deploy/production.ini
7+
RuntimeDirectory=/apps/app_repo/src/ch15-deploy/final/pypi_deploy/
88
Restart=always
99
KillSignal=SIGQUIT
1010
Type=notify

src/ch15-deploy/final/pypi_deploy/server/server_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ python3 -m venv venv
4343
source /apps/venv/bin/activate
4444
pip install --upgrade pip setuptools
4545
pip install --upgrade httpie glances
46+
pip install --upgrade uwsgi
4647

4748

4849
# clone the repo:
4950
cd /apps
5051
git clone https://github.com/talkpython/data-driven-web-apps-with-pyramid-and-sqlalchemy app_repo
5152

5253
# Setup the web app:
53-
# TODO: Replace this with correct path from repo
5454
cd /apps/app_repo/src/ch15-deploy/final/pypi_deploy
5555
# pip install -r requirements.txt
5656
python setup.py develop

0 commit comments

Comments
 (0)