This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ln -s ../.env .env | |
| #installdomain | |
| sudo nano /etc/nginx/sites-available/pw-backend | |
| #start ngnix | |
| sudo systemctl start nginx | |
| sudo systemctl status nginx |