GitLab root 계정 비밀번호 변경

leekyungryul·2024년 3월 14일
0

git

목록 보기
9/10

GitLab Rails 콘솔 실행

gitlab-rails console -e production

Ruby: ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux]
GitLab: 16.8.1 (a658d811568) FOSS
GitLab Shell: 14.33.0
PostgreSQL: 14.9
------------------------------------------------------------[ booted in 30.54s ]
Loading production environment (Rails 7.0.8)
irb(main):001:0> user=User.where(id:1).first
=> #<User id:1 @root>
irb(main):002:0> user.password='new_password'
=> "new_password"
irb(main):003:0> user.password_confirmation='new_password'
=> "new_password"
irb(main):004:0> user.save
=> true
irb(main):005:0> exit

profile
끊임없이 노력하는 개발자

0개의 댓글

관련 채용 정보