-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.txt
56 lines (36 loc) · 1.24 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
=======================
MY PERSONAL SCRATCH PAD
=======================
I version control this to keep things backedup and retrieve old notes if required. This file can be ignored by you.
Thanks
=======================
***********************
Notes for Admins
- there should be atleast 2 carousel images
- carousel image size:
gunicorn --bind 0.0.0.0:8000 temple_web.wsgi
Edit gunicorn service
sudo micro /etc/systemd/system/gunicorn.service
See django app logs
sudo journalctl -u gunicorn -n 100
Edit gunicorn socket file
sudo micro /etc/systemd/system/gunicorn.socket
Edit gunicorn service file
sudo micro /etc/systemd/system/gunicorn.service
Edit nginx conf file
sudo micro /etc/nginx/sites-available/iskconbarasat
Give permission to your django project
sudo chmod -R 777 /var/www/
Start Gunicorn
sudo systemctl start gunicorn.socket
sudo systemctl enable gunicorn.socket
Check gunicorn status
sudo systemctl status gunicorn
curl --unix-socket /run/gunicorn.sock localhost
Enable nginx conf
sudo ln -s /etc/nginx/sites-available/iskconbarasat /etc/nginx/sites-enabled
Ufw allow
sudo ufw delete allow 8000
sudo ufw allow 'Nginx Full'
Download the sqlite db to my local machine
scp aahnik@ip-address-of-server:/home/aahnik/temple-web/src/db.sqlite3 .