I have problem with running Angular Universal on my Plesk panel (apache):
already i insalled nodejs
:
npm run build:ssr
on my localhost and copy the dist
from localhost to httpdocs
directory on plesk.package.json
on httpdocs
directory;I clicked on
Run script
in my Plesk and try to runserve:ssr
, but nothing happens.
-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