Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with moving to real prod enviornment #19

Open
gnanavelshenll opened this issue Dec 29, 2017 · 1 comment
Open

Issue with moving to real prod enviornment #19

gnanavelshenll opened this issue Dec 29, 2017 · 1 comment

Comments

@gnanavelshenll
Copy link

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.

@erBhushanPawar
Copy link

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants