Answer the question
In order to leave comments, you need to log in
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
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question