Comments (7)
This happens when port 4200 is already in use, and you'd otherwise have an error, and your dev server would not start (two servers are not allowed to run on the same port at the same time).
If you don't have a duplicate server on 4200 running, let me know!
from ember-cli.
If I ask for a specific port and its not available, shouldn't it error? As in, I'd only expect auto-behaviour when no port is specified
from ember-cli.
Nay, because you want to get to developing, and if you do run multiple prajects on your computer, it's a convenience to just get to your work, rather guessing a new port.
Here is the implementation pr for discussion: #10394
from ember-cli.
Fair enough. I can work with that, it just means our work flow might change.
Spin up watchers
cd app1
npm run watch # port 4200
npm run watch:tests # port 4201
cd app2
npm run watch # port 4300
npm run watch:tests. # port 4301
The difference being that now, developers can accidently do:
cd app1
npm run watch # port 4201 CLASH: app server running on test server location
from ember-cli.
Anything goofy with the watch modes always booting, rather than erroring?
Do you have other tools that are expecting fixed port numbers?
from ember-cli.
If I ask for a specific port and its not available, shouldn't it error? As in, I'd only expect auto-behaviour when no port is specified
This is what I also would expect to happen and is what the PR description mentions as well:
ember serve will now automatically choose a port (starting with 4200), unless a port is explicitly set with the --port flag or the $PORT env variable.
I haven't tried it, but looking at the implementation I would expect --port 4201
to throw an error if that port is already in use, instead of selecting a different one automatically. So I do think it's a bug that the default port (4200) doesn't do that.
Unrelated, but it probably would also be a lot clearer if an extra message was displayed when a port is occupied and a different one was selected.
from ember-cli.
I can get behind that -- would you be willing to open a PR?
from ember-cli.
Related Issues (20)
- Fails to fingerprint in production mode HOT 3
- set `declaration: false` in tsconfig.json for the app blueprint.
- TypeScript error on new project: 'SetupTestOptions' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled. HOT 2
- Run Prettier standalone HOT 2
- fingerprint.prepend not working for the chunk js files HOT 3
- [email protected] has security vulnerability HOT 2
- Setup ESLint for gjs/gts
- You passed the '--typescript' flag but there is no TypeScript blueprint available. A JavaScript blueprint will be generated instead. HOT 7
- new typescript component blueprint gives eslint warning HOT 3
- Fresh app 404's on missing assets/test-support.css HOT 8
- Could it be possible to use `--directory` to output to an already existing directory? HOT 1
- Add a `--no-ci-provider` flag for `ember new`
- App blueprint has invalid ESLint config HOT 4
- Add bun support for Ember CLI projects HOT 1
- Environment file is not loading accurately in CircleCI HOT 4
- Security vulnerability in lodash.template package HOT 2
- "hifi sourcemaps" don't work on a new Ember project HOT 2
- #9902 HOT 1
- Deprecation warning on Node 22 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli.