Open amir-Yegane opened 5 years ago
Hi, I assume you got this working, did you ensure that the additional write/modify permissions were enabled as shown here in the red box:
I'd like to know if you eventually got everything running as you'd like as I'm facing a similar situation trying to get my angular 8 app hosted on a plesk shared environment to serve static prerendered pages.
I am working on Angular 6 implementing Angular Universal Rendering while in production Angular Universal working on the local machine that I can easily deploy and run. But when I started deploying the Angular Universal in Plesk shared windows server it's not working unexpectedly. I followed several links but there was less information. Please, I need some help in how to deploy Angular Universal Rendering in Plesk shared windows server. Appreciate your help Guys! Thank You! this is my steps: 1- I deployed like this:
2- I upload dist folder on my host with this structure: 3- then I Enabled Node.js on my server and run NPM install. after installing the following warning is returned.
I am not sure are they important or no?
4- I copied the following codes in web.config
<handlers>
<add name="iisnode" path="dist/Kabook-Web/server.js" verb="*" modules="iisnode" />
</handlers>
<rewrite>
<rules>
<rule name="myapp">
<match url="/*" />
<action type="Rewrite" url="dist/Kabook-Web/server.js" />
</rule>
<!-- Don't interfere with requests for node-inspector debugging -->
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^dist/Kabook-Web/server.js\/debug[\/]?" />
</rule>
</rules>
</rewrite>
<directoryBrowse enabled="true" />
<iisnode devErrorsEnabled="true" debuggingEnabled="true" loggingEnabled="true" nodeProcessCommandLine="C:\Program Files\nodejs\node.exe" />
5- then I copied the following code in server.js as has been explained in this link Plesk Windows deploy node.js
app.use(express.static('dist/Kabook-Web'));
then I run my website and face with this error in explorer.
I don't know how to solve it. please, someone help me...