Open Maxmyd opened 2 years ago
Hello, Problem is the application now is not running on Linux, though it supports .NET 6
What to do (I did, and it worked)
Host.CreateDefaultBuilder(args) .UseSystemd() // add this line
[Unit] Description=Identity server admin
[Service] WorkingDirectory=/var/www/Identity/Admin ExecStart=/usr/bin/dotnet /var/www/Identity/Admin/Skoruba.Duende.IdentityServer.Admin.dll --urls=http://localhost:5001/ Restart=always RestartSec=10 SyslogIdentifier=IdentityServerAdmin User=linux_login_here Environment=ASPNETCORE_ENVIRONMENT=Development Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
[Install] WantedBy=multi-user.target
4. Compile, deploy and start service using "systemctl" command Would be nice if you add these changes, right now I had to clone repository and make changes manually
Hello, Problem is the application now is not running on Linux, though it supports .NET 6
What to do (I did, and it worked)
[Service] WorkingDirectory=/var/www/Identity/Admin ExecStart=/usr/bin/dotnet /var/www/Identity/Admin/Skoruba.Duende.IdentityServer.Admin.dll --urls=http://localhost:5001/ Restart=always RestartSec=10 SyslogIdentifier=IdentityServerAdmin User=linux_login_here Environment=ASPNETCORE_ENVIRONMENT=Development Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
[Install] WantedBy=multi-user.target