Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 994 Bytes

README.md

File metadata and controls

50 lines (33 loc) · 994 Bytes

Install SDK on server:
https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian

adduser <user>
usermod -aG sudo <user>

Login under the new user name.

sudo apt install rsync
sudo mkdir -p /var/www/meal-planner
sudo chown -R <user>:<user> /var/www
sudo chmod -R /var/www

Create certificates

sudo certbot --nginx

Run at solution level

dotnet publish -c Release -r linux-x64 --self-contained false

rsync

Run from WSL2. Add n to list for a dry-run and see what will be synced

rsync -av ./path/to/app <username>@<ip-address>:<target directory>

Restart nginx (test to make sure it is OK then restart)

sudo nginx -t
sudo nginx -s reload