Deployment of static website with nginx and git

Опубликовано: 25 Ноябрь 2021
на канале: 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


Смотрите видео Deployment of static website with nginx and git онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь TensorCode (Mansouri youssef) 25 Ноябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,117 раз и оно понравилось 34 людям.