Setting DNX_APPBASE from the deployment helpers
This commit is contained in:
parent
6dd1fd7dc1
commit
76d0d56b5d
|
|
@ -10,7 +10,6 @@
|
|||
<!-- This will turn on detailed errors when deployed to remote servers -->
|
||||
<!-- This setting is not recommended for production -->
|
||||
<add key="ASPNET_DETAILED_ERRORS" value="true" />
|
||||
<add key="dnx-app-base" value="../" />
|
||||
</appSettings>
|
||||
|
||||
</configuration>
|
||||
|
|
@ -90,8 +90,10 @@ namespace DeploymentHelpers
|
|||
// IIS express figures out the DNX from %PATH%.
|
||||
#if DNX451
|
||||
startInfo.EnvironmentVariables["PATH"] = ChosenRuntimePath + ";" + startInfo.EnvironmentVariables["PATH"];
|
||||
startInfo.EnvironmentVariables["DNX_APPBASE"] = DeploymentParameters.ApplicationPath;
|
||||
#elif DNXCORE50
|
||||
startInfo.Environment["PATH"] = ChosenRuntimePath + ";" + startInfo.Environment["PATH"];
|
||||
startInfo.Environment["DNX_APPBASE"] = DeploymentParameters.ApplicationPath;
|
||||
#endif
|
||||
|
||||
var hostProcess = Process.Start(startInfo);
|
||||
|
|
|
|||
Loading…
Reference in New Issue