angular-cli.json is used to persist informations about Angular2 project.
It should be cool if we could save too the information about "serve":
in the angular-cli.json like this:
{
"serve": {
"port": 4201,
"live-reload-port": 49153
}
}
It will avoid passing port and live-reload-port when you do ng serve
If you accept to do that, it should be very cool too to update the JSON Schema https://github.com/angular/angular-cli/blob/master/lib/config/schema.json that I'm using to have completion for Eclipse Editor. Thanks!
you can actually do that but not in the angular-cli.json file rather in .ember-cli in the root of your project like this:
{
"port": 4201,
"liveReload": true,
"host": "dev.domain.org",
"live-reload-port": 49153
}
Thank you @yahyaKacem.
I wonder if it would be too much to ask for an optional "--save" parameter/flag to ng serve that would persist the options, like this:
ng serve --port 4201 --live-reload-port 50000 --host 0.0.0.0 --save
Not that it's hard to edit .ember-cli by hand but this way it would be documented right there and easier to discover.
Many thanks @yahyaKacem!
Why not also persist the proxy settings in the configuration file?
ng serve --host 0.0.0.0 --live-reload-port 49153
Is not working...
When i terminate the application its webpage is not getting loaded...
Can anybody help!!!
We are deployed project of Angular 2 and angular cli on AWS server (Production). Change angular-cli.json file
as per below. Use command : ng serve.
angular-cli.json
{
"port": 4201,
"liveReload": true,
"host": "example.com",
"live-reload-port": 49153
}
we use live host name. but error disply
Provided host example.com could NOT be bound. Please provide a different host address or hostname . on aws(amazon) server.
i have attach screen shot also.
Please any suggestion to how to serve application on AWS(amazon)server live host name.

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._
Most helpful comment
Why not also persist the proxy settings in the configuration file?