gitlab相关

323 阅读1分钟

gitlab配置文件 gitlab.rb

  • external_url 'http://172.20.13.141'这里修改的是git clone git@172.20.13.141:itoa/xxx.git地址

gitlab备份与恢复

  • gitlab恢复需要删除数据库里的内容,貌似用的是PostgreSQL。
  • 报错:could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:49:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => gitlab:db:configure
(See full trace by running task with --trace)
STDERR:
---- End output of "bash" "/tmp/chef-script20171027-3190-3qzkrj" ----
Ran "bash" "/tmp/chef-script20171027-3190-3qzkrj" returned 1

找不到文件 /var/opt/gitlab/postgresql/.s.PGSQL.5432