Actions
Django-hosting » History » Revision 7
« Previous |
Revision 7/30
(diff)
| Next »
Nico Schottelius, 04/08/2016 11:27 AM
django-hosting.ch by ungleich¶
How to use¶
Configure your app¶
- Create wsgi.py below your app/wsgi.py in your project root that returns the wsgi application
Deploy¶
- Deploy / update your app into the folder ~app/app (that is the app folder in the home of the user app)
- We recommended to use git to deploy it
- Use the database "app" (running on localhost, no password required)
- Don't forget to run your migrations!
- Restart uwsgi to load the new code of your app
Restarting the app¶
- sudo systemctl restart uwsgi
Viewing logfiles¶
- nginx access log: tail -F /var/log/nginx/access.log
- nginx error log: tail -F /var/log/nginx/error.log
- uwsgi log: tail -F /var/log/uwsgi/app/app.log
Description of the stack¶
Technologies¶
- Debian 8
- nginx
- PostgreSQL
- uwsgi
Configuration¶
- user "app"
- in group "adm" (to view logfiles)
- PostgreSQL with
- database "app"
- Listens only on localhost / socket (no remote connections) **
Updated by Nico Schottelius over 8 years ago · 7 revisions