Open Jarzka opened 7 years ago
Please take a look at lein profiles https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md
It will solve your problem in the near term.
I do think the guidance is skewed by assuming that a person is using figwheel in another project and should change the :server-port
Part of the answer here could be something like :server-port :auto
but this can lead to some extremely hard to figure out situations.
A really good solution would be a PORT environment variable and/or a --port command line option.
Any chance we get something like this soon? Modifying configs is less than ideal and as far as I know, there's no analogue to "lein profiles" for those of us on tools.deps.
Hi
I try to start Figwheel for a project while another project is already using Figwheel, the result is: Port 3449 is already being used. Are you running another Figwheel instance? If you want to run two Figwheel instances add a new :server-port (i.e. :server-port 3450)
However, the :server-port needs to be a global setting for all projects (i.e. it is not possible to set individual ports for each CLJS build) and it needs to be an integer (one value). Is there a mistake in the guidance since it asks me to add a new server port while it is only possible to use one server port for all CLJS builds at a time?