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

Setting up tether-drop to work with angular-cli#1.0.0-beta.24
Angular CLI (AOT) gives error: ERROR in Cannot determine the module for class
Angular CLI - ng serve won't run unless I specify port
ERROR in Multistyles…Module not Found (Angular-cli.json)
Angular Cli support for inline templates and css
Angular Cli - How do I rebuild my project
How to change angular 2 port from 4200 to any other
Is autoprefixer active in angular-cli beta 19
How to use nconf with Angular CLI?
angular-cli how to split output js files to vendor and script js file
Errors when installing angular-cli
Using Angular-CLI build to copy a file / directory
angular-cli 'ng' commands sluggish
I keep getting errors when usng angualr-cli - Cannot find Set, Promise, Map
Angular CLI installation failure
Angular CLI modify component generation

Categories

HOME
caching
crystal-reports
checkbox
freepascal
scipy
wsdl
ipython
label
thunderbird-addon
cocos2d-x-3.0
playframework
tomcat7
orientation
azureservicebus
xtext
openwrt
dropbox
cockroachdb
ndis
data-synchronization
maxima
lenskit
jcl
flat-file
ghost-inspector
image-quality
autofill
red-black-tree
crt
read-write
pdflatex
pycparser
gettext
large-data
von-neumann
powershell-remoting
passenger
nodeclipse
topic-modeling
duktape
jquery-multidatespicker
archer
vcf
appstore-approval
seamless-immutable
istorage
crystal-reports-8.5
scd
photography
restivejs
vici
gulp-typescript
rsqlite
sql-import-wizard
system.web.ui.webcontrols
gherkin
group-concat
approval-tests
futuretask
paypal-nvp
ffprobe
divide-by-zero
word-2013
multipleselection
pisa
java-melody
candidate-key
errorprovider
fragment-tab-host
hidden-field
sortable
yahoo-boss-api
picat
phpdocx
gfs
nsmatrix
goinstant
mailcore
xslkey
vertical-scrolling
abnf
sametime
pys60
dropdownlistfor
cbcentralmanager
autostart
static-variables
deploying
plone-funnelweb
ubuntu-11.04
querystringparameter
selectmanycheckbox
nsindexpath
electronic-signature
paintcomponent
ihttphandler
zend-form-element
squeel
pureftpd
email-spec
hardware-acceleration
boost-date-time
mvvm-foundation
economics
web-analytics-tools
cots

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