gitlab修改root密码
gitlab-rails console -e production
// 查询root用户
> user = User.where(username:"root").first
=> #
// 修改密码
> user.password = "password"
=> "password"
// 保存
> user.save!
Enqueued ActionMailer::MailDeliveryJob (Job ID: 1baf8589-c259-4287-bb21-345c862c1935) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", {:args=>[#>]}
=> true
exit