I have created an Angular project with Node.js as a backend.
This is the server file structure:
Home directory
- httpdocs
- node-hm
- dist
- browser(folder)
- server (folder)
- server.js
- package.json
- web.config
I have managed to "npm install" from the Node.js menu in plesk.
Tried to:
- change the Application Startup File to "dist/server.js".
- change document root to "node-hm/dist" folder.
- copy dist file to "node-hm" - only the index is loaded, other files like CSS won't load
What am I missing?
found the answer here:
https://talk.plesk.com/threads/use-nodejs-and-problem-with-express-routing.343510/
need to modify web.config to serve the static files
and define in server.js: