fullstack-demo icon indicating copy to clipboard operation
fullstack-demo copied to clipboard

What should I do to start my server in production environment?

Open sojharo opened this issue 10 years ago • 0 comments

When I build my project, inside dist/server/app.js I can see the following line:

process.env.NODE_ENV = process.env.NODE_ENV || 'development';

What should I do to start my server in production environment when I try running from this directory? Also, I want my project to listen on both ports 3000 and 8443, if request comes on 3000 I redirect it to 8443.

Please help with this.

sojharo avatar Apr 02 '15 04:04 sojharo