-
Notifications
You must be signed in to change notification settings - Fork 519
Deploying web app with NodeServices to Azure #1177
Comments
Anybody? |
Did you found a solution? |
I modified the csproj to actually publish the node_modules and my js files.
It deployed them but I couldn't make it work in production. I think it has
to do with jsreports package. I will continue trying.
El 20 ago. 2017 9:07 p. m., "Hesham Desouky" <[email protected]>
escribió:
… Did you found a solution?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1177 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKIBC4uLWGfzKcDJ3P75N1SNAV-ZZAo5ks5saMoqgaJpZM4OxFVm>
.
|
@jcmontx I managed to make a deploy on Azure VM server, but also needed node_modules to be copied. But strangely enough, locally on my machine I manage to have deployed site and run thru IIS7. According to your error, I guess, you are missing NODEJS on the server where it is deployed. Remember that NodeJs is the one doing the JavaScript rendering. |
@jcmontx I also think this must be something to do with your @theCuriousOne Azure runs ASP.NET Core apps in an environment where Node is available, so there isn't any problem with that for server-side prerendering. Since I've verified that a clean new project deploys and runs correctly via Continuous Delivery, I'll mark this as closed. However, if anyone can repro a problem, could you please post a new issue with repro steps based on starting with a new project? Thanks. |
Just to add for future reference (maybe someone has stumbled upon). Make sure that you have set the ASPNETCORE_ENVIRONMENT=Production otherwise the app will search for the webpack middleware for the hot-module reloading (and you do not need that on production). If you do not have access to the machine to set this, then I suggest added to the webconfig file if you deploy to IIS more details here
|
see #1377 |
I'm trying to use NodeServices. Everything works just fine locally, but when I deploy (using Azure Continuous Delivery) doesn't work. I get this exception:
EDIT: I'm hosting in an Azure App Service.
This is my package.json:
I first thought it was that node packages weren't restoring correctly. So I configured it in the build process:
But that didn't fix it. What am I missing here?
Maybe I should commit my node_modules? That definitely doesn't feel right.
The text was updated successfully, but these errors were encountered: