Angular-cli: why not show the localhost://4200 in the terminal?

Created on 3 Dec 2016  路  14Comments  路  Source: angular/angular-cli

angular-cli 1.0.0.beta-22
localhost://4200 lost in terminal

beta-22-error

latest version

4200-error

old version

4200-ok

Most helpful comment

why not make it auto open Chrome with URL === http://localhost:4200/ ?

just like browsersync does!

https://www.browsersync.io/

All 14 comments

why not make it auto open Chrome with URL === http://localhost:4200/ ?

just like browsersync does!

https://www.browsersync.io/

why not log it to the console yourself?

console.log('da url is:... wait for it...', url);

The goal of tools should be easy using & save time !

wrong, that's not the point at all. you'll have to figure it out for yourself.

In my views, you are totally wrong!
waste of my time!

update CLI 1.0.0.beta22

$ npm i -g [email protected]

$ ng new app
# very slowly , just waiting for it install all packages!

$ cd app
# open app folder path

## test version (./src)
$ ng server

# why not show the localhost://4200 in the terminal? 
# browser-sync for (./dist)
$ browser-sync start --server

## publish development version (./dist)
$ ng build

## publish production version (./dist)  
## (./angular-cli.json & ./src/environments/environment.prod.ts)
$ ng build --env=prod

Hi @xgqfrms-GitHub. I do not see this in my console using the latest beta 22-1:

screen shot 2016-12-05 at 5 58 33 pm

Are you sure you have the latest version? What's your command line? Closing this but please answer with more info if that doesn't answer your issue.

Cheers.

(as you can see above, it says NG Live Development Server is running on http://localhost:4200.)

@xgqfrms-GitHub also please note that --open opens the browser as you'd expect.

https://docs.c9.io/docs/run-an-application

how can I change the http://localhost:4200 or http://1270.0.1:4200 to https://0.0.0.0:3000?

Available ports on a hosted Cloud9 workspace

If you're developing a server application, please note that you need to listen to 0.0.0.0 ($IP) and 8080 ($PORT). Listening to this port will enable your app to be viewable at https://-.c9users.io

You can also bind to ports 8081, and 8082, which can be accessed by https://-.c9users.io:8081 and https://-.c9users.io:8082 respectively.

Please note that 8080, 8081, and 8082 are the only available ports on a hosted Cloud9 workspace.

Don't use ng serve in production. It's exclusively for local development, and its security has never been tested.

https://community.c9.io/search?q=https%20user%3Abradydowling

https://docs.c9.io/docs/multiple-ports

If you try to load your site in the preview embedded into the IDE then it won't load there and you can only load over HTTPS. Why can't you open your application in the embedded view using HTTP?

https://community.c9.io/t/why-cant-i-load-my-app-with-http-in-the-embedded-preview/2555/3
https://community.c9.io/t/why-cant-i-load-my-app-with-http-in-the-embedded-preview/2555

If you have an issue related to the CLI, please file a new issue. I'm locking this conversation, since this exact issue has been resolved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daBishMan picture daBishMan  路  3Comments

sysmat picture sysmat  路  3Comments

MateenKadwaikar picture MateenKadwaikar  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments