Deployment of static website with nginx and git

Published: 25 November 2021
on channel: TensorCode (Mansouri youssef)
1,117
34

---------------------------------------------------------------------
Abonnez vous TensorCode
Subscribe TensorCode
   / @tensorcode  
---------------------------------------------------------------------

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


Watch video Deployment of static website with nginx and git online without registration, duration hours minute second in high quality. This video was added by user TensorCode (Mansouri youssef) 25 November 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,117 once and liked it 34 people.