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

keep angular cli development application running in the background on the server ? #4951

Closed
helxsz opened this issue Feb 23, 2017 · 9 comments

Comments

@helxsz
Copy link

helxsz commented Feb 23, 2017

I am running a angular cli development on a remote server, would it possible to run this development application in daemon mode? like what we use in forever.js

thanks in advance!!

@Meligy
Copy link
Contributor

Meligy commented Feb 23, 2017

The CLI serve feature is only for development. It does not support production server scenario. If you run ng serve -prod you'll get a warning about that.

The typical story is that you run ng build -prod, and then take the dist (or whatever your output folder is) and serve it under any server program you like (Apache, nginx, IIS, etc.). At the end of the day, this is a folder of just static files, so, it doesn't have any special server requirements.

@filipesilva
Copy link
Contributor

Closing as answered by @Meligy, thank you!

@samehelhawary
Copy link

you can use the following command to run ng with forever

forever start node_modules/@angular/cli/bin/ng serve

@melvinmoses123
Copy link

its running in local host only. What I do to make it on ip address.

@samehelhawary
Copy link

forever start node_modules/@angular/cli/bin/ng serve --host {ip_address or domain} --prod

@iKrishnaSahu
Copy link

And what is the command if I want to stop the infinite running server?

@melvinmoses123
Copy link

You can use

forever stop <Id|Uid|Pid|Index|Script>

for a particular server or

forever stopall

to stop all servers starting using forever.

@bbmattieu9
Copy link

How do i make angular run indefinitely on the server? With forever.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants