Radiotetaneutralnet » Historique » Version 3
Mehdi Abaakouk, 02/02/2016 11:10
1 | 1 | Mehdi Abaakouk | h1. radio.tetaneutral.net |
---|---|---|---|
2 | 1 | Mehdi Abaakouk | |
3 | 1 | Mehdi Abaakouk | h2. Source |
4 | 1 | Mehdi Abaakouk | |
5 | 1 | Mehdi Abaakouk | * https://github.com/bikepunk/wifi-with-me |
6 | 1 | Mehdi Abaakouk | * https://gitlab.com/vindarel/wifi-with-django |
7 | 1 | Mehdi Abaakouk | |
8 | 3 | Mehdi Abaakouk | h2. Urls |
9 | 3 | Mehdi Abaakouk | |
10 | 3 | Mehdi Abaakouk | * https://radio.tetaneutral.net/ -> wifi-with-me |
11 | 3 | Mehdi Abaakouk | * https://radio.tetaneutral.net/admin -> admin de wifi-with-django |
12 | 3 | Mehdi Abaakouk | * https://radio.tetaneutral.net/next -> public de wifi-with-django |
13 | 3 | Mehdi Abaakouk | |
14 | 3 | Mehdi Abaakouk | |
15 | 1 | Mehdi Abaakouk | h2. Installation en prod: |
16 | 1 | Mehdi Abaakouk | |
17 | 1 | Mehdi Abaakouk | */!\ Ne jamais utiliser pip sur la machine, cela casserai d'autre site qui utilise python sur la machine /!\* |
18 | 1 | Mehdi Abaakouk | |
19 | 1 | Mehdi Abaakouk | Le virtualenv qui contient les libs python pour ces applis est dans /var/www/radio.tetaneutral.net/venv |
20 | 1 | Mehdi Abaakouk | |
21 | 2 | Mehdi Abaakouk | * /var/www/radio.tetaneutral.net/update-req-and-db.sh permets de mettre à jour les libs et la BD. |
22 | 2 | Mehdi Abaakouk | * /var/www/radio.tetaneutral.net/public contient wifi-with-me |
23 | 2 | Mehdi Abaakouk | * /var/www/radio.tetaneutral.net/admin contient wifi-with-django |
24 | 1 | Mehdi Abaakouk | |
25 | 1 | Mehdi Abaakouk | h3. Mise à jour |
26 | 1 | Mehdi Abaakouk | |
27 | 1 | Mehdi Abaakouk | Faire un checkout de la revision désiré de chaque projets (ici on prends le master de chaque repo) |
28 | 1 | Mehdi Abaakouk | |
29 | 1 | Mehdi Abaakouk | <pre> |
30 | 1 | Mehdi Abaakouk | cd /var/www/radio.tetaneutral.net/public |
31 | 1 | Mehdi Abaakouk | git pull --rebase origin master |
32 | 1 | Mehdi Abaakouk | |
33 | 1 | Mehdi Abaakouk | cd /var/www/radio.tetaneutral.net/admin |
34 | 1 | Mehdi Abaakouk | git pull --rebase origin master |
35 | 1 | Mehdi Abaakouk | </pre> |
36 | 1 | Mehdi Abaakouk | |
37 | 1 | Mehdi Abaakouk | Mise à jour de libs et de la BD: |
38 | 1 | Mehdi Abaakouk | |
39 | 1 | Mehdi Abaakouk | <pre> |
40 | 1 | Mehdi Abaakouk | /var/www/radio.tetaneutral.net/update-req-and-db.sh |
41 | 1 | Mehdi Abaakouk | </pre> |
42 | 1 | Mehdi Abaakouk | |
43 | 1 | Mehdi Abaakouk | Restart des services: |
44 | 1 | Mehdi Abaakouk | |
45 | 1 | Mehdi Abaakouk | <pre> |
46 | 1 | Mehdi Abaakouk | $ supervisorctl restart wififorme |
47 | 1 | Mehdi Abaakouk | wififorme: stopped |
48 | 1 | Mehdi Abaakouk | wififorme: started |
49 | 1 | Mehdi Abaakouk | |
50 | 1 | Mehdi Abaakouk | $ supervisorctl restart wififordjango |
51 | 1 | Mehdi Abaakouk | wififordjango: stopped |
52 | 1 | Mehdi Abaakouk | wififordjango: started |
53 | 1 | Mehdi Abaakouk | </pre> |
54 | 1 | Mehdi Abaakouk | |
55 | 1 | Mehdi Abaakouk | h3. logs: |
56 | 1 | Mehdi Abaakouk | |
57 | 1 | Mehdi Abaakouk | <pre> |
58 | 1 | Mehdi Abaakouk | /var/log/supervisor/wififorme/wififorme.err |
59 | 1 | Mehdi Abaakouk | /var/log/supervisor/wififorme/wififorme.out |
60 | 1 | Mehdi Abaakouk | /var/log/supervisor/wififordjango/wififordjango.err |
61 | 1 | Mehdi Abaakouk | /var/log/supervisor/wififordjango/wififordjango.out |
62 | 1 | Mehdi Abaakouk | </pre> |