Move users from local to remote server

Hi there,

if I create a new site, I naturally work on it in a local environment for a while, before I deploy it to the remote server. I use git for deployment and for security reasons the accounts folder that holds the users is excluded from git tracking via the .gitignore file.

I initially create an admin user to set up the panel. How do I transfer this account to the remote server, if not via git? Is the idea to just newly set up the admin account on the remote server? Or is there some method to safely transfer it?

Also, is the idea to set up all other user accounts on the remote server? And does that mean, I can always only create them once I have moved the site to the remote server and never before.

Would be great to get some help to generally understand the concepts behind that.

Thanks!

You can just transfer the site/accounts folder via SFTP. Alternatively, most hosting control panels have a built in File Manager. You can also use that.

You only need to do this once. Since it’s excluded from git, it shouldn’t over write them when you push changes going forward.

1 Like

Ah, ok. So the security measure of excluding it via .gitignore is just to prevent it being uploaded to repo sites like GitHub? That means there is no security risk in transfering this folder from A to B, right? Wasn’t sure about that, as I don’t really know much about security.

It’s fine. the gitignore rule is just there so you don’t accidentally check in any secrets to a public github repository.

1 Like

Ok, got it. Thanks!