PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, November 13, 2022

[FIXED] How to deploy angular universal on Plesk panel (apache)

 November 13, 2022     angular, angular-universal, apache, plesk     No comments   

Issue

I have problem with running Angular Universal on my Plesk panel (apache):

already i insalled nodejs:

enter image description here

  1. i do npm run build:ssr on my localhost and copy the dist from localhost to httpdocs directory on plesk.
  2. copied package.json on httpdocs directory;
  3. in this step what i should do ?

I clicked on Run script in my Plesk and try to run serve:ssr, but nothing happens.

enter image description here


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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing