Deployment Plan - sanvi1855544/p3-avatar GitHub Wiki

The website will be deployed using a Raspberry Pi and set up with DNS for a domain. A .txt file with dependencies will be kept to ensure users can properly access the site if they want to replicate it locally. The website will be updated two times a week, around Tuesday 6 pm and Friday 6 pm.

Nginx config

server { listen 80; listen [::]:80; sanvi1855544 18.225.20.215 idea.nighthawkcodingsociety.com;

location / {
    include proxy_params;
    proxy_pass http://unix:/home/pi/p3-avatar/avatar.sock;
}

}

Service config

[Unit]

Description=Gunicorn instance to serve **avatar** web project

After=network.target

[Service]

User=pi

Group=www-data

WorkingDirectory=/home/pi/**p3-avatar**

Environment="PATH=/home/pi/**p3-avatar/avatar**/bin"

ExecStart=/home/pi/**p3-avatar/avatar**/bin/gunicorn --workers 3 --bind

unix:**avatar**.sock -m 007 **app**:app

[Install]

WantedBy=multi-user.target

⚠️ **GitHub.com Fallback** ⚠️