How do I keep my Angular application running permanently?

0

To keep the NodeJs server running permanently on the computer is the following procedure;

$ npm install forever
$ forever start server.js

However, how do I make my Angular application run permanently on my computer?

If I restart my computer it would have to be running aurtomatically my Angular application.

    
asked by anonymous 13.04.2018 / 12:09

1 answer

1

If your question is related to the application Angular2 + ...

The right way to leave an Angular application running permanently is by doing build for production and putting it on a web server. If it is to be used on your computer, I recommend using XAMPP ( link )

ng build --prod

Then copy the contents of the dist folder into the hamp.docs folder of xampp. Remember to leave xampp as a service to start automatically.

    
13.04.2018 / 16:24