Skip to content
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

Support for non-default pg_port #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davegudge
Copy link

The configured pg_port was not supplied to the psql -c commands, thus all commands were executed against the default port of 5432.

The configured `pg_port` was not supplied to the `psql -c` commands,
thus all commands were executed against the default port of 5432.
@davegudge
Copy link
Author

Hi @bruno- @NorseGaud,

I can confirm this is still an issue. I've had to update my Gemfile to:

gem "capistrano-postgresql", require: false, github: "skillstream/capistrano-postgresql"

to ensure the commands are run against the non-default port I have set in the deploy.rb file:

set :database_port, 5413
set :pg_port, -> { fetch :database_port }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant