Login to new server as root, then add a deploy user
sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deploy
Now login as that user
server { | |
listen 80 default_server deferred; | |
server_name what-shong.com; | |
root /root/what-song-frontend/current; | |
access_log /root/what-song-frontend/current/nginx.access.log; | |
error_log /root/what-song-frontend/current/nginx.error.log info; | |
location / { | |
proxy_pass http://104.156.56.109:3000; |