我正在将我的 gitlab 迁移到另一台服务器。旧的 gitlab 服务器使用 postgresql,新的 gitlab 服务器使用 mysql。
我正在使用名为“DBConvert for MySQL & PostgreSQL”的工具对其进行转换。
数据库转换成功,repo文件也复制到新的gitlab服务器。
但是我的项目不能使用,当点击项目时它注意到 http 代码 500。
在gitlab Health check中,它注意到
Migrations are pending.
To resolve this issue, run: bin/rake db:migrate RAILS_ENV=production"
当我运行这个 cmd 时,它注意到“没有找到 Rakefile”
如何从那里开始?
最佳答案
确保执行 bin/rake
db:migrate RAILS_ENV=production
从您的 GitLab-CE 安装文件夹。
或者从同一个 GitLab 文件夹中尝试:
bundle exec rake db:migrate RAILS_ENV=production"
my src and dst gitlab version are 8.8.4 , it's the same
在那种情况下,只需不执行任何 db:migrate RAILS_ENV=production
:这将避免创建重复表。
关于mysql - gitlab 健康检查不健康,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40819374/