-
Notifications
You must be signed in to change notification settings - Fork 74
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
port ignored in tern.conf #63
Comments
I'm on MacOS Monterey 12.4 as well, but I am unable to reproduce the issue. I'm not using docker though. Just tern and PostgreSQL on the same machine. Does it work if you pass port as a CLI option? What about the other settings in tern.conf? Are they definitely being read? The config file is optional so maybe it isn't being read at all. Maybe related to #38. |
It has the same issue if I pass it in as a CLI option:
Looks like the other options do get read, just not the port. If I just use the pure config file, the other options definitely do get read. For instance, if you check the original error message in the issue, it is using the correct database name. |
I was able to reproduce on Ubuntu as well. Here's the output from
Definitely don't think this is OS-related. Whether or not postgres is containerized or not shouldn't be relevant though no? Does |
I can confirm tern uses the correct port if I remove my |
I'm at a bit of a loss as to what could be happening. Could you step through in a debugger? Maybe something would become apparent then. |
I had the same issue, workaround for me was specifying |
Still unable to reproduce. I'm using the latest v2-dev. |
I can replicate this behavior. Tern always uses 5432 regardless of what port is present in the config file, even deleting the port value from the config file and passing by flag does not work. Deleting the entire config file and passing all values by flag makes it work. |
I can confirm that bug (currently on Windows): If sslmode is not set, tern does not pick up port in tern.conf or command line |
System: macOS Monterey version 12.4
tern version: 1.13.0
I'm currently facing a weird issue where
port
is being ignored intern.conf
. I specified it to be9200
andtern
still uses 5432. I have adocker-compose
file that looks like this:I started this up in a separate terminal with
docker-compose up
, I can confirm the pg server is up and running and listening for connections. I then have the followingtern.conf
:When I run
tern
withMIGRATOR_PASSWORD=postgres tern migrate
, I get the following error:If I change my
docker-compose.yml
to expose it on local port 5432, it works of course. I've also tried other ports and it only uses 5432. I'm using macOS Monterey version 12.4 (I saw another issue here specific to Windows, not sure if the OS is even relevant here).The text was updated successfully, but these errors were encountered: