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

How do I run this on a server? #6

Closed
Faisalnwz01 opened this issue Jun 22, 2018 · 5 comments
Closed

How do I run this on a server? #6

Faisalnwz01 opened this issue Jun 22, 2018 · 5 comments

Comments

@Faisalnwz01
Copy link

Faisalnwz01 commented Jun 22, 2018

I am running npm run build with NODE_ENV=production to build out the production build. If I run the node dist/server/main.js express doesn't work. Is there any documentation around this?

p.s.
If I run node bin/server.bundle.js I get an error that throw new Error("[HMR] Hot Module Replacement is disabled.");

@bojidaryovchev
Copy link
Owner

bojidaryovchev commented Jun 22, 2018

The dist folder contains the angular builds, the server build is in the bin folder..
Could u explain further what exactly are you trying to do, like step by step?

@bojidaryovchev
Copy link
Owner

bojidaryovchev commented Jun 22, 2018

OK I saw what you mean when trying to deploy it to heroku.. I think its fixed now.. anyway keep in mind that currently the server modules depend on mongodb connection so unless provided an error will be thrown..

@Faisalnwz01
Copy link
Author

@bojidaryovchev Yep that seemed like it did it. Thanks for the quick reply.

Closing the issue!

@1166544
Copy link

1166544 commented Aug 25, 2018

image

when i run node ./bin/server.bundle.js, but just console this message, my question is:
How to visit? http://localhost:300?, but it not work.

@1166544
Copy link

1166544 commented Aug 25, 2018

I mean in SSR mode, how to deploy and run my application?

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

3 participants