53GB

Deployment of static website with nginx and git



Deployment of static website with nginx and git

———————————————————————
Abonnez vous TensorCode
Subscribe TensorCode
https://www.youtube.com/channel/UCWomAAXyxg6z8IdcTf9Yyeg
———————————————————————

Steps used in the video

1 – connect to vps

user: ssh username@ipaddress
password: ***************

2 – add your code in specific folder

3 – install nginx and git (if your code in github or other)

4- check nginx status (service nginx status)

5- if not started, start it (systemctl start nginx)

6- create nginx file.

server{
listen 80;
listen [::]:80;
server_name domain_name;
root path to code;
index index.html;
client_max_body_size 100m;

location / {
try_files $uri $uri/ /index.html$is_args$args;
}
}

TensorCode

Exit mobile version