gpt4 book ai didi

mysql - gitlab 健康检查不健康

转载 作者:太空宇宙 更新时间:2023-11-03 16:17:20 26 4
gpt4 key购买 nike

我正在将我的 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com