Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

how to config Supervisor for ASP.NET Core web App

$
0
0

I have a ASP.NET CORE web app deployed on the Ubuntu server, and I use Supervisor to control the process, in the Supervisor config file I set the common as following:

[program:myapp]

command=dotnet run --project /home/myapp/project.json --configuration Release
directory=/home/myapp
autostart=true
autorestart=true
stderr_logfile=/home/myapp.err.log
stdout_logfile=/home/myapp.out.log
environment=Hosting__Environment=Production,HOME=/home/myapp
user=www-data
stopsignal=INT
user=root

but when I start the supervisor service, I always got lots of errors like this:

/home/lengyanzhou168/project.json(9,60): error NU1001: The dependency Libuv >= 1.9.0-rc2-20896 could not be resolved.
/home/lengyanzhou168/project.json(7,49): error NU1001: The dependency Microsoft.AspNetCore.Antiforgery >= 1.0.0-rc2-final could not be resolved.
/home/lengyanzhou168/project.json(7,49): error NU1001: The dependency Microsoft.AspNetCore.Authorization >= 1.0.0-rc2-final could not be resolved.
/home/lengyanzhou168/project.json(7,49): error NU1001: The dependency Microsoft.AspNetCore.Cors >= 1.0.0-rc2-final could not be resolved.
/home/lengyanzhou168/project.json(7,49): error NU1001: The dependency Microsoft.AspNetCore.Cryptography.Internal >= 1.0.0-rc2-final could not be resolved.
/home/lengyanzhou168/project.json(7,49): error NU1001: The dependency Microsoft.AspNetCore.DataProtection >= 1.0.0-rc2-final could not be resolved.

Note: when I run the web app in the shell, it works fine, only got these errors when I try to launch the web app from Supervisor, can anyone please help, any comments would be appreciated!

also, what's the meaning of the "Hosting__Environment=Production", I just copy from the asp.net core help document, I think maybe it's wrong, that's the right value for that?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>