1.到 gitlab 安装路径 && gitlab-rails console production
cd /opt/gitlab/bin && sudo gitlab-rails console production
cd YOUR_GITLAB_PATH && sudo gitlab-rails console production
u=User.where(id:1).first
u.password = 'YOUR_PASSWORD'
u.password_confirmation = 'YOUR_PASSWORD'
u.save!
irb(main):004:0> u.save!
Enqueued ActionMailer::DeliveryJob (Job ID: 4847c99e-eac6-4ed7-94aa-6d7de597a4bd) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", gid://gitlab/User/1
=> true
出来这么一行就改成功了
网友评论