Created
October 23, 2014 17:51
-
-
Save azurewraith/464f7604087913c379fd to your computer and use it in GitHub Desktop.
gitlab_ci w/ omnibus pgsql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PRODUCTION | |
# | |
production: | |
adapter: postgresql | |
encoding: unicode | |
database: gitlab_ci_production | |
pool: 5 | |
username: 'gitlab_ci' | |
password: | |
host: | |
port: 2345 | |
socket: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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=> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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