-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set 3000 as the default web port #1215
Conversation
Worth to mention, I've just started playing with this repo following the setup guide and I faced with the issue where the app was running in a random port every time that I started it (it took me a while to figure out that was because I didn't set the |
@alagos I think we should leave the I agree that given the setup instructions, it could be confusing to include |
It's worth mentioning—many of the variables in The goal with that file is to be a comprehensive overview of all the variables that can be used. We may just need to specify this a bit more clearly in the dev setup guides as I can see where this would be confusing. |
Having by default `PORT=` only assigns to that variable `0`, which is interpreted by puma to start the web app in a random port when `bin/dev` is called.
That's the thing, it doesn't really matter if you call
as this script eventually calls |
@alagos ah, I see what you're saying now. I agree, the precedence should be command-line arg -> .env -> fallback So if we have an
|
Not really, having
and calling
Same
won't consider the
and calling
|
@alagos I understand that and agree with you. I was commenting on our expected behavior; not the current behavior. I agree that the current behavior is wrong. |
Having by default
PORT=
only assigns to that variable0
, which is interpreted by puma to start the web app in a random port whenbin/dev
is called.Also
export
ing the port in this file is useless, as in the foreman context, it's eventually overriden by the settings of your default.env
file that has just been copied from.env.example
.