Look in to pulling DEV_PORT
and DEV_HOST
values from .env
#1913
Labels
needs investigation
A possible bug / better docs needed. Investigate further
If you want to specify a custom port or custom host that's different from your
config/watch.yml
, you can set theDEV_PORT
andDEV_HOST
env vars; however, these have to be set at the CLI level.Alternatively, you can specify these in your
Procfile.dev
The reason these don't read from the
.env
is because thewatch
task will be precompiled in to yourbin/
dir, and your.env
file isn't read until after this task is created.The downside to not reading from the
.env
is that you may want to run on a different port than the rest of your team, so you don't want to add changes that will get added in to git, and you may forget to add it before callinglucky dev
and maybe you don't want to make an alias shortcut for yourself.I've briefly looked in to this issue, and it seems like a rather big refactor, but if someone else wants to look in to this without having to change how Lucky runs or making any breaking changes to the code, I'd be open to a PR.
The text was updated successfully, but these errors were encountered: