TwanoO67 / bootstraping-ngx-admin-lte

Angular2,4,6 project with AdminLTE dashboard template (using angular, angular-cli and ngx-admin-lte ) Formerly called 'ng2-admin-lte'.
463 stars 220 forks source link

How to deploy the application on production #90

Closed nileshyadav326 closed 7 years ago

nileshyadav326 commented 7 years ago

Hi ,

Kindly help to deploy the application on production.

when I run the application on production using terminal it (npm start command is working fine but when I close the terminal it stops )

Any suggestion?

TwanoO67 commented 7 years ago

In production you should not use the node server. You should build your app with "ng build --prod" then serve the dist result via apache or nginx

TwanoO67 commented 7 years ago

Any update on that ?

nileshyadav326 commented 7 years ago

it's working fine using Tomcat to serve the application. previously installed node js and all dependencies but after your suggestion using ng build --env=prod command to generate the files.

Thanks.