I'm sure I remember seeing some documentation somewhere that had a way to save the port number ember-cli uses in a config file, but it doesn't seem to say anything in the documentation.
I have to use
ember server --port 9999
but i would love to save that port number in a file.
You can use a .ember-cli config file to change the port. discussion
So in your root folder, have a .ember-cli file with the following:
{
"port": 9999
}
Edit: the .ember-cli file is now documented on the ember-cli website.
Using a .ember-cli
file is the way to go according to the ember-cli docs here.
I'm using nitrous.io - which is fantastic - however it doesn't allow port 4200 - and in any case I wanted the server to be on 3000.
Also, I noticed that the server was starting up and refreshing very slowly - issue seems to be with the live-reload-server - and again the default port.
So, my .ember-cli
config file now looks like this...
{
"port": 3000,
"live-reload-port": 4000
}
Everything seems ok with nitrous.io and most importantly my server load time is now what you would expect - also, live-reload works great.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With