ganatan / angular-ssr

Angular 18 Example SSR (Server Side Rendering)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Error starting web application" error when running on server

MehmetSert opened this issue · comments

Hello,

I copied your project with "git clone" and ran the command "npm run build: ssr && npm run serve: ssr". "localhost: 4000" works without problems. Then I uploaded the files to my Plesk panel. I have defined "server / main.js" for the Node.js application launch file. But it doesn't work.

The same problem exists in my own project. Angular 8 version of my own project runs on the server. But it doesn't work on the server when it updates to Angular 9.

Angular 8 created "server.js" in "dist" folder in "ssr build" operation. I was selecting "server.js" as the Node.js application launch file in the Plesk panel. But now "server.js" does not exist. I wonder how you create files when you build them. Could you help?

Thanks in advance.