Issue
I have problem with running Angular Universal on my Plesk panel (apache):
already i insalled nodejs:
- i do
npm run build:ssron my localhost and copy thedistfrom localhost tohttpdocsdirectory on plesk. - copied
package.jsononhttpdocsdirectory; - in this step what i should do ?
I clicked on
Run scriptin my Plesk and try to runserve:ssr, but nothing happens.
Solution
-make sure in your "Document Root" to choose the browser folder in dist.
-in your server.ts REMOVE this if condition:
if (moduleFilename === __filename || moduleFilename.includes('iisnode')) {
run();
}
and replace it with just:
run();
then restart your node.js app again from the plesk GUI
Answered By - Shreef Entsar Answer Checked By - David Goodson (PHPFixing Volunteer)


0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.