You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
From what I can read, the code currently assumes that Node is on the PATH. I think it's a good idea not to bundle a specific version of Node with this package, but it would be great if it was possible to specify where the Node executable is. Would make it easier to deploy multiple sites using this to the same server where the different sites use different Node versions.
The text was updated successfully, but these errors were encountered:
Good idea. This config option could be added to the services.AddNodeServices(config) API, with the default being to continue assuming Node is on the system path.
…ons (and OutOfProcessNodeInstance, SocketNodeInstance and HttpNodeInstance) to configure environment of the node.exe process to be started, and the path to the node executable itself. Fixesaspnet#20
For anyone wondering how to override the path where the node executable is found, you can do it like this:
publicclassMyHttpNodeInstance:HttpNodeInstance{protectedoverrideProcessStartInfoPrepareNodeProcessStartInfo(stringentryPointFilename,stringprojectPath,stringcommandLineArguments){varstartInfo=base.PrepareNodeProcessStartInfo(entryPointFilename,projectPath,commandLineArguments);// Here you can modify 'startInfo' to specify where the Node executable should be foundreturnstartInfo;}}
From what I can read, the code currently assumes that Node is on the PATH. I think it's a good idea not to bundle a specific version of Node with this package, but it would be great if it was possible to specify where the Node executable is. Would make it easier to deploy multiple sites using this to the same server where the different sites use different Node versions.
The text was updated successfully, but these errors were encountered: