Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We made hosting configuration keys to be consistent in command line/environment variables/hosting.json. Also Microsoft.AspNet.Hosting.json configuration file was renamed to hosting.json
Microsoft.AspNet.Hosting.json
hosting.json
Issue: aspnet/Hosting#453
Related #94
server
Hosting:Server
ASPNET_SERVER
--server
app
Hosting:App
ASPNET_APP
--app
ASPNET_ENV
Hosting:Environment
ASPNET_ENVIRONMENT
environment
--environment
webroot
ASPNET_WEBROOT
--webroot
Hosting:DetailedErrors
ASPNET_DETAILEDERRORS
detailedErrors
--detailedErrors
Sample Configuration File
{ "webroot": "wwwroot", "server" : "Microsoft.AspNet.Server.Kestrel", "app": "MyProjectReference", "environment": "Development", "detailedErrors": true }
Sample Environment Variables: All environment variables are prefixed with ASPNET_ prefix.
ASPNET_
ASPNET_WEBROOT=wwwroot ASPNET_SERVER=Microsoft.AspNet.Server.Kestrel ASPNET_APP=MyProjectReference ASPNET_ENVIRONMENT=Development ASPNET_DETAILEDERRORS=true
Sample Command line:
Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --webroot "wwwroot" --app "MyProjectReference" --environment "Development" --detailedErrors true
The text was updated successfully, but these errors were encountered:
Note these environment variables have been updated to ASPNETCORE_ as described in #144 (comment).
ASPNETCORE_
Sorry, something went wrong.
No branches or pull requests
pakrym commentedNov 10, 2015
We made hosting configuration keys to be consistent in command line/environment variables/hosting.json. Also
Microsoft.AspNet.Hosting.json
configuration file was renamed tohosting.json
Issue:
aspnet/Hosting#453
Related
#94
server
orHosting:Server
ASPNET_SERVER
hosting.json:
server
Command Line:
--server
app
orHosting:App
ASPNET_APP
hosting.json:
app
Command Line:
--app
ASPNET_ENV
orHosting:Environment
ASPNET_ENVIRONMENT
orASPNET_ENV
(obsolete)hosting.json:
environment
Command Line:
--environment
webroot
ASPNET_WEBROOT
hosting.json:
webroot
Command Line:
--webroot
Hosting:DetailedErrors
ASPNET_DETAILEDERRORS
hosting.json:
detailedErrors
Command Line:
--detailedErrors
Sample Configuration File
Sample Environment Variables:
All environment variables are prefixed with
ASPNET_
prefix.Sample Command line:
Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.Kestrel --webroot "wwwroot" --app "MyProjectReference" --environment "Development" --detailedErrors true
The text was updated successfully, but these errors were encountered: