gpt4 book ai didi

ruby-on-rails - linux找不到gitlab-rake?

转载 作者:数据小太阳 更新时间:2023-10-29 08:59:52 26 4
gpt4 key购买 nike

所以我尝试对 git 进行备份。我找到了这个脚本(这里:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md)
但是,如果我使用此命令,它会说找不到该命令。我做错了什么?

root@gitlab-test git/gitlab# sudo gitlab-rake gitlab:backup:create SKIP=db,uploads                                                                                                            
sudo: gitlab-rake: command not found

我也试过命令

sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production

但是命令在 upload.rb 处停止,并显示 Errno::ENOENT:没有这样的文件或目录

最佳答案

这取决于gitlab的安装位置。
例如:

PATH=$PATH:/opt/gitlab/bin
export PATH

检查 gitlab-rake 是否在 /opt/gitlab/bin 中。

There should be symlinks in /usr/bin .
如果没有,也许您已经从源代码安装了 GitLab (sudo -u git -H bundle exec rake)

关于ruby-on-rails - linux找不到gitlab-rake?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38605707/

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