jackc / tern

The SQL Fan's Migrator
MIT License
850 stars 66 forks source link

ssh-tunnel port not being respected from config #83

Open michaelknowles opened 11 months ago

michaelknowles commented 11 months ago

Config

[database]
host = localhost
port = 5432
database = postgres
user = postgres

[ssh-tunnel]
host = localhost
port = 2222
user = vagrant
tern migrate
Unable to connect to PostgreSQL:
  dial tcp 127.0.0.1:22: connect: connection refused

Would expect to see 127.0.0.1:2222 if the port was being used from the config. Using Mac if it matters.

tern version
tern v2.1.1
michaelknowles commented 11 months ago

84