Skip to content

Instantly share code, notes, and snippets.

@azurewraith
Created October 23, 2014 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azurewraith/464f7604087913c379fd to your computer and use it in GitHub Desktop.
Save azurewraith/464f7604087913c379fd to your computer and use it in GitHub Desktop.
gitlab_ci w/ omnibus pgsql
# PRODUCTION
#
production:
adapter: postgresql
encoding: unicode
database: gitlab_ci_production
pool: 5
username: 'gitlab_ci'
password:
host:
port: 2345
socket:
[bcochran@lavos gitlab-ci|5-0-stable]$ sudo -u gitlab_ci -H psql -p 2345 -d gitlab_ci_production
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.2345"?
[bcochran@lavos gitlab-ci|5-0-stable]$ sudo -u gitlab_ci -H /opt/gitlab/embedded/bin/psql -p 2345 -d gitlab_ci_production
psql (9.2.8)
Type "help" for help.
gitlab_ci_production=>
[bcochran@lavos gitlab-ci|5-0-stable]$ sudo -u gitlab_ci -H bundle exec rake setup RAILS_ENV=production
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 2345?
also, with no localhost as 'host'
[bcochran@lavos gitlab-ci|5-0-stable]$ sudo -u gitlab_ci -H bundle exec rake setup RAILS_ENV=production
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.2345"?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment