N
N
NikSIk312020-10-25 12:50:30
ubuntu
NikSIk31, 2020-10-25 12:50:30

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

2 answer(s)
S
Sanes, 2020-10-25
@Sanes

  • Correct about the environment. But it's better not to suffer with manual picking, but install the control panel. Fatpanel works great with Laravel in any php mode.
  • I didn't use Gitlab. What's stopping you from doing itgit clone

S
Sergey delphinpro, 2020-10-25
@delphinpro

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 question

Ask a Question

731 491 924 answers to any question