Gitlab layout totally crashed

巧了我就是萌 提交于 2019-12-23 03:07:05

问题


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

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"):


回答1:


You can try a clean first:

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

Or in one line, as in this migration steps page:

sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production

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

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.



来源:https://stackoverflow.com/questions/22776379/gitlab-layout-totally-crashed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!