Help understanding what Ubuntu user(s) should be used #4124
-
|
Hi everyone, I've been investigating using deployer to better manage updating a Laravel app. For testing, I've been using UTM to spin up an Ubuntu 24.04 server, connecting to it locally, which has been great for repeating things from a clean start. I have no issues understanding the broader concepts of deployer, I can write my own commands, etc, and I've been able to deploy successfully from a github repo. But what I've struggled with understanding is what are the best practices when it comes to creating the initial user on the Ubuntu server, and what user should be handling the provision step. When I first install Ubuntu, it asks to create an initial user, and that user has sudo privileges. I'm enabling the SSH server, and I can then ssh into the box using that user. My questions are:
I'm wondering if there's a few assumed steps with setting up the Ubuntu server, that simply aren't included in the doco, but they're steps that are critical to make the initial provision set work. The doco gives an impression that I should be able to just spin up a Laravel server, create a Please note, that's not criticism of the doco, I understand it needs to cover a wide range of use cases! Finally, I am confused by this phrase:
Ubuntu doesn't have root access by default, so I'm not sure of where this would come into play. Would this be where you do enable the root user to be able to log in, get things setup, then disable it again? If that's the case, it feels more work than just creating a new deployer user. Any guidance on this would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Nope,
If you use dep provision, yes - deployer user. Or use the one you created if you going to provision everything yourself.
provision should be run with
No. If you use caddy this is enough to reload config.
Just run with root. This is the easier.
Enable root, but login with ssh key. provision should be done only once. |
Beta Was this translation helpful? Give feedback.
Nope,
dep provisionwill create deployer user automatically.If you use dep provision, yes - deployer user. Or use the one you created if you going to provision everything yourself.