Gitlab布局完全崩溃 [英] Gitlab layout totally crashed

查看:160
本文介绍了Gitlab布局完全崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我关闭了Gitlab服务器,然后运行bundle exec rake assets:precompile RAILS_ENV=productionsudo service gitlab start

I shutdown the Gitlab server, then run bundle exec rake assets:precompile RAILS_ENV=production and sudo service gitlab start

Gitlab的视图就变成了这种方式.

And the view of the Gitlab became that way.

现在,通过手动运行服务器,我可以看到有点普通的视图,但是缺少网页视图中的所有图像

Now I can see the a bit normal view by run the server manually, but missing all the images on the webpage view

RAILS_ENV=production rails s -p 1234

ActionController::RoutingError (No route matches [GET] "/uploads/user/avatar/2/Screenshot_2014_3_28_%E4%B8%8B%E5%8D%885_40.jpg"):

推荐答案

您可以先尝试干净:

RAILS_ENV=production bundle exec rake assets:clean
RAILS_ENV=production bundle exec rake assets:precompile

或一行,如如果问题仍然存在,请尝试查找缺少的元素,如此评论(适用于gitLab-CI,但此处适用相同的想法)

If the issue persists, try to find the missing elements, as in this comment (for gitLab-CI, but the same idea would apply here)

最后,检查最新版本的GitLab是否不需要对NGiNX设置进行某些更改,如问题6216 ,以便可以访问资产文件夹.

Finally, check if recent versions of GitLab don't need some changes in the NGiNX settings, as in issue 6216, for the assets folder to be accessible.

这篇关于Gitlab布局完全崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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