- Install dotnet-sdk-5.0 on your Dev machine
- Run publish_linux_gameservices.bat
- Install aspnetcore-runtime-5.0 on server
- Copy
AlcatrazGameServices\bin\release\net5.0\ubuntu.18.04-x64\publish
to your server - Configure your
appsettings.json
- Create service:
sudo nano /etc/systemd/system/kestrel-alcatraz.service
[Unit]
Description=Alcatraz Rendez-Vous server
[Service]
WorkingDirectory=/home/deployer/publish
ExecStart=/home/deployer/publish/AlcatrazGameServices
Restart=always
RestartSec=10
SyslogIdentifier=alcatraz-rdv
User=root
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=ASPNETCORE_URLS="http://0.0.0.0:80"
[Install]
WantedBy=multi-user.target
- Start service sudo systemctl enable kestrel-alcatraz.service sudo systemctl start kestrel-alcatraz.service sudo journalctl -u kestrel-alcatraz.service