gitlab管理
创建用户密码
[root@localhost ~]# gitlab-rails console -e production
--------------------------------------------------------------------------------
Ruby: ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux]
GitLab: 14.3.2 (92acfb1b8a9) FOSS
GitLab Shell: 13.21.1
PostgreSQL: 12.7
--------------------------------------------------------------------------------
Loading production environment (Rails 6.1.3.2)
irb(main):001:0> user = User.where(id: 1).first
=> #<User id:1 @root>
irb(main):005:0> user.password = 'Aimmi123!'
=> "Aimmi123!"
irb(main):006:0> user.password_confirmation = 'Aimmi123!'
=> "Aimmi123!"
irb(main):007:0> user.save!
Enqueued ActionMailer::MailDeliveryJob (Job ID: 50dce87d-da28-4c63-9fc9-5ee61ce0febd) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", {:args=>[#<GlobalID:0x00007efbd7e955a0 @uri=#<URI::GID gid://gitlab/User/1>>]}
=> true
irb(main):008:0> exit
创建用户
创建组