Skip to content

Instantly share code, notes, and snippets.

View godejoh's full-sized avatar

Adejoh Godwin godejoh

View GitHub Profile
sudo apt update
sudo apt upgrade -y
sudo apt install nginx -y
//creating a nn root user
adduser deploy
usermod -aG sudo deploy
rsync -a ~/.ssh/ /home/deploy/.ssh && chown -R deploy:deploy /home/deploy/.ssh
su - deploy
ln -s ../.env .env
#installdomain
sudo nano /etc/nginx/sites-available/pw-backend
#start ngnix
sudo systemctl start nginx
sudo systemctl status nginx