angular-cli


Angular CLI - ng serve won't run unless I specify port


I have an application generated with Angular CLI running on a Ubuntu box. When I run:
ng serve
From the project's root directory, everything works, except that I can't load the load the application in my browser when I navigated to:
http://host.domain.tld:4200/
However, when I run:
ng serve --host 0.0.0.0 --port 4201 --live-reload-port 49153
Then I the application loads in my browser.
How can I configure the application to be accessible on the dev server by just running "ng serve"?
you can go edit your package.json file and change this line: "start": "ng serve", with "start": "ng serve --host 0.0.0.0 --port 4201 --live-reload-port 49153", and then you could just simply run npm start

Related Links

Missing peer dependencies after installing latest angular-cli: What to do?
angular-cli ng serve : Error: No errors
Getting error after Angular cli update
Does angular-cli uses rollup to do ahead-of-time compilation and adding all into one file?
Angular CLI install error
Using glob for assets in angular-cli throws error
Importing Global SCSS into Component SCSS with Angular-CLI
Error during AOT build with angular-cli 24 and Angular 2.4.1
Add importer to node-sass in angular-cli project
angular-cli#1.0.0-beta.23 (2016-12-15) NOT on npm
Angular cli for existing github project
How to pass config data to NgModule so NgModule will be compiled with AOT
Cloning a repo based on Angular CLI
How can I speed up Angular CLI Live Reload - 1-2 minutes per change
Generating a barrel when calling ng g component <myName>
Setting up tether-drop to work with angular-cli#1.0.0-beta.24

Categories

HOME
jsviews
voip
translation
command
concourse
quill
java-home
docker-windows
shader
public-key-encryption
viber
rapidjson
zope
bootstrap-popover
aptana
derived
atlassian-plugin-sdk
thumbnails
jive
bootstrap-typeahead
cronet
activepython
python-textprocessing
mef2
fetch-api
vcard
mayavi
cortex-m3
pep8-assembly
helix-3d-toolkit
expand
stocks
viewstate
precedence
jquery-cycle2
bing-maps-api
wfp
active-model-serializers
agent
rule
dart-pub
sendgrid-templates
tripwire
google-account
html-agility-pack
pdftk
homekit
fastq
worker
timesten
tuleap
pinvoke
webdatagrid
goquery
maintenance
struts-layout
etherpad
photography
python-hypothesis
onresume
debugdiag
rstudio-server
aescryptoserviceprovider
git-annex
multiple-file-upload
flexjson
fill
direct3d12
jenkins-scriptler
app.xaml
sevenzipsharp
ipojo
pgm
ember-cli-addons
es2015
adodb
omnifocus
x-ua-compatible
emma
level
voldemort
delphi-xe3
lov
healthvault
asp.net-mvc-scaffolding
dig
wpdb
lync-server-2010
couchdb-lucene
objectbrowser
adsl
pivotal-crm
revert
winverifytrust

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App