gitlab webui通过gitlab-rails设置密码后询问密码 [英] Gitlab webui ask password after settings password via gitlab-rails

查看:69
本文介绍了gitlab webui通过gitlab-rails设置密码后询问密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装gitlab之后,我使用gitlab-rails更改root密码,但是Web界面仍然要求设置密码.如果我在WebUI上更改密码,则可以使用gitlab-rails更改密码.所以我用

After the installation of gitlab i use gitlab-rails to change root password but the webinterface still asks to set a password. If i change the password on the WebUI i can use gitlab-rails to change password. So i used

user = User.find_by(email: 'admin@local.host')
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
user.save

gitlab_rails['initial_root_password'] = 'nonstandardpassword'in gitlab.rb
gitlab-rake gitlab:setup 

您是否知道我如何在不使用gui的情况下初始化第一个root密码?

Do you have an idea that how i can initalize first root password without the gui ?

谢谢

推荐答案

请使用 sudo gitlab-rake gitlab:setup RAILS_ENV = production GITLAB_ROOT_PASSWORD =< your_pass>GITLAB_ROOT_EMAIL =<您的邮件>

希望这对您有所帮助:)

Hope this helpful for you :)

这篇关于gitlab webui通过gitlab-rails设置密码后询问密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆