We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WorkingDirectory
cd
1 parent 739957b commit ab54533Copy full SHA for ab54533
content/tutorials/websites/deploy-a-web-app.md
@@ -258,7 +258,7 @@ The scripts provided here are just examples and won't necessarily be perfect for
258
#!/bin/bash -e
259
260
. ~/myapp/venv/bin/activate
261
-export PYTHONPATH='/home/crsid/myapp'
+cd ~/myapp
262
exec gunicorn -w 2 -b unix:/home/crsid/myapp/web.sock \
263
--log-file - main:app
264
```
@@ -357,6 +357,7 @@ crashes. We highly recommend using `systemd` to supervise your app.
357
WantedBy=default.target
358
359
[Service]
360
+ WorkingDirectory=/home/{CRSid}/myapp
361
ExecStart=/home/{CRSid}/myapp/run.sh
362
Restart=always
363
0 commit comments