Django-hosting » History » Version 3
Nico Schottelius, 04/08/2016 10:51 AM
1 | 1 | Nico Schottelius | h1. django-hosting.ch by ungleich |
---|---|---|---|
2 | |||
3 | h2. How to use |
||
4 | |||
5 | 2 | Nico Schottelius | |
6 | * Deploy / update your app into the folder *~app/app* (that is the app folder in the home of the user app) |
||
7 | ** We recommended to use git to deploy it |
||
8 | 1 | Nico Schottelius | * Use the database "app" (running on localhost, no password required) |
9 | 2 | Nico Schottelius | ** Don't forget to run your migrations! |
10 | * Restart uwsgi to load the new code of your app |
||
11 | |||
12 | 3 | Nico Schottelius | h3. Restarting the app |
13 | 2 | Nico Schottelius | |
14 | * *sudo systemctl restart uwsgi* |
||
15 | |||
16 | |||
17 | h3. Viewing logfiles |
||
18 | |||
19 | * Use *sudo tail -F /v |
||
20 | 1 | Nico Schottelius | |
21 | |||
22 | h2. Description of the stack |
||
23 | |||
24 | h3. Technologies |
||
25 | |||
26 | * Debian 8 |
||
27 | * nginx |
||
28 | * PostgreSQL |
||
29 | * uwsgi |
||
30 | 3 | Nico Schottelius | |
31 | h3. Configuration |
||
32 | |||
33 | * user "app" |
||
34 | ** in group "adm" (to view logfiles) |
||
35 | * PostgreSQL with |
||
36 | ** database "app" |
||
37 | ** Listens only on localhost / socket (no remote connections) |
||
38 | ** |