chairemobilite / transition

Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
http://transition.city
MIT License
22 stars 13 forks source link

yarn start -p does not work while --port does #1096

Open kaligrafy opened 1 week ago

kaligrafy commented 1 week ago

tested on macos

greenscientist commented 1 week ago

@kaligrafy , so what is the problem here? Do we need to update documentation or something else ?

kaligrafy commented 1 week ago

In evolution, -p works, so we should make it work too in transition

kaligrafy commented 1 week ago

both -p and --port should work

greenscientist commented 1 week ago

So not a bug, but a wishlist... :)

kaligrafy commented 1 week ago

yes, changed the label

tahini commented 1 week ago

I don't know if it's a macos thing, but in linux, in evolution surveys or transition, here's what yarn start -p portNumber does:

➜  survey git:(main) ✗ yarn start -p 8082
yarn run v1.22.22
$ yarn workspace od_nationale_2024 run start -p 8082
$ yarn babel-node lib/server.js --max-old-space-size=4096 -p 8082
$ ./node_modules/.bin/babel-node lib/server.js --max-old-space-size=4096 -p 8082
8082
Done in 0.77s.

It just prints the port in the console! --port works fine though