I have a website being served by Nginx and I've recently setup travis builds and deployments for it.
Nginx is running the website as
www-data user. I've created an user
deploy so that Travis can login on the server through SSH and deploy the website. Deployed files are being stored with
deploy user as owner, which is different than the user that is running the website (
I'm afraid of having permissions problems running the website with this setup. Should I use the same user
deploy to run and deploy the website? Using this approach, will I have problems by allowing the user running the website to login remotely through SSH?
Please enlighten me regarding this.