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 複製代碼