Brak opisu

Justin Gilman d0231fd91e Fixing test (making sure it fixes CI deploy) 2 lat temu
Server f807f05ece moving infra files into Server project 2 lat temu
ServerTests d0231fd91e Fixing test (making sure it fixes CI deploy) 2 lat temu
.gitignore 21b30e7727 updating gitignore to exclude published directory 2 lat temu
README.md f158463710 adding more notes for how to set up ansible to be able to restart services 2 lat temu
jsonjumble.sln d006c415bd moving project to subfolder; adding xunit test project; adding projects to solution file 2 lat temu

README.md

How to start

dotnet restore

dotnet run

Will start a JSON API server on 127.0.0.1:5000

Production Server Setup

wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb

sudo apt-get update; \ sudo apt-get install -y apt-transport-https && \ sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-6.0

Symlinks

sudo ln -s /var/www/jsonjumble.com/infra/jsonjumble.service /lib/systemd/system/jsonjumble.service

sudo ln -s /var/www/jsonjumble.com/infra/jsonjumble_nginx.conf /etc/nginx/sites-available/jsonjumble.com

Service Installation

systemctl daemon-reload systemctl enable myvncserver.service systemctl start myvncserver.service

Permissions

/etc/sudoers.d/ansible

ansible ALL=(ALL) NOPASSWD:ALL

Defaults

User

admin : password