Answer the question
In order to leave comments, you need to log in
Step by step deployment of a Laravel project on an Ubuntu VPS with GitLab ssh-keys?
Please tell me on such issues:
to begin with, I will describe how I did
1) I created a user on the UPU.
2) /var/www/ mysite.com - folder for the site
--- question 1 : should this folder be given the rights of my user? (that is, not root?)
3) also gave permission to the user in ~/.ssh And created a key on behalf of the user ssk-keygen - uploaded it to gitlab
--- question 2 : is it correct to upload a key from a specific user to gitlab, and not from root?
--- question 3 : and is it right that I gave him rights
Answer the question
In order to leave comments, you need to log in
git clone
I create a user, place the site in his home folder. I am running nginx as this user.
Key generation, work in the console - everything from this user. Root is rarely required.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question