angular-seo icon indicating copy to clipboard operation
angular-seo copied to clipboard

Issue with moving to real prod enviornment

Open gnanavelshenll opened this issue 8 years ago • 1 comments

Hi All, I am new to server side rendering concept. After the npm run start the dist folder is created and the localhost:4000 is running but after coping the code from dist folder and keeping in the apache web server and after running the server I am getting the page but the source code is saying 404 error which is weird. should I install node.js in my prod server and run my code there as well, if so what changes to the server.ts file should i make. i thought its pre compiled code and only a static web server to run the dist folder files should be fine. Please help me on this.

gnanavelshenll avatar Dec 29 '17 13:12 gnanavelshenll

you surely need node on your server and you can also use pm2 for the same as your server should not go down.

Also you need to redirect your traffic with forward and reverse proxy according to your server (apache or nginx) and then your server will start delivering the pages to port 80.

All the best !

erBhushanPawar avatar Mar 17 '18 08:03 erBhushanPawar