S
S
Sergey2021-04-22 23:06:25
Software Deployment
Sergey, 2021-04-22 23:06:25

How to upload website to server via ssh?

There is a small site on React. I want to post it online. But so that the download can be done through the terminal via ssh. That is, go to the server, go (usually) to the var/www/mySiteName folder, clone the repository, npm i, npm run build and you're done.
There is experience of such loading. But I still don’t understand how all this is organized on the server itself, where the same var / www folder comes from. From the tutorials that I find, they offer managers through ftp, which is a completely different story. And if through ssh, then, as I understand it, you need a vps server and also configure it.
Can someone describe the whole process of downloading the site via ssh? I think to do it on reg.ru

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2021-04-22
@GavriKos

The www folder is created by the web server - apache, nginx and others. And uploading via ssh, via ftp or something else - this has nothing to do with the appearance of the folder

P
part_os, 2021-04-23
@part_os

https://youtu.be/AHK20LWEWXQ
Use phpstorm and this instruction

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question