要调用gitlab的api,因为初五gitlab运维小哥的pgsql的删除与跑路,我决定先在测试环境玩一玩, 重点是忘记密码了,先改个密码再说。 .到 gitlab 安装路径 && gitlab-rails console PRoduction
cd /opt/gitlab/bin && sudo gitlab-rails console productioncd YOUR_GITLAB_PATH && sudo gitlab-rails console production2.
u=User.where(id:1).first3.
u.passWord = 'YOUR_PASSWORD' u.password_confirmation = 'YOUR_PASSWORD'4.
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出来这么一行就改成功了5
exit新闻热点
疑难解答