【发布时间】:2014-07-10 12:01:18
【问题描述】:
我在全新安装的 CentOS 6.5 x64 上安装了 Gitlab Omnibus 的稳定版 7.0.0。
然后,我在 /var/opt/gitlab/git-data/repositories 中复制了我的旧 Gitlab 存储库的内容(我正在运行一台从 git 安装 Gitlab 的 Ubuntu 机器)。
当我尝试从 Web 界面编辑某些文件时出现错误:
Your changes could not be committed, because the file has been changed.
如果我编辑 wiki 页面,我会收到 500 错误。
然后我尝试了这个命令:
gitlab-rake gitlab:satellites:create RAILS_ENV=production
我的 wiki 页面现在是可编辑的,但如果我编辑某个存储库文件,则会返回相同的错误。
然后我尝试删除/var/opt/gitlab/git-data/gitlab-satellites/的内容,但问题没有解决。
现在如果我尝试运行 gitlab-rake gitlab:satellites:create RAILS_ENV=production 我会得到:
config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
* development - set it to false
* test - set it to false (unless you use a tool that preloads your test environment)
* production - set it to true
rake aborted!
ActiveRecord::AdapterNotSpecified: 'production' database is not configured. Available: ["production"]
Tasks: TOP => gitlab:satellites:create => environment
(See full trace by running task with --trace)
Mi 存储库拥有所有者 git:git 和权限 drwsrws---.
我该如何解决这些问题?
【问题讨论】:
标签: gitlab