Gitlab布局完全崩溃了
我关闭了Gitlab服务器,然后运行bundle exec rake assets:precompile RAILS_ENV=production
和sudo service gitlab start
Gitlab的观点就是这样。
现在我可以通过手动运行服务器来查看有点正常的视图,但是缺少网页视图上的所有图像
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
或者在一行中,如在此迁移步骤页面中 :
sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production
如果问题仍然存在,请尝试查找缺少的元素, 如此评论中所述 (对于gitLab-CI,但同样的想法适用于此处)
最后,检查GitLab的最新版本是否在NGiNX设置中不需要进行某些更改,如问题6216所示 ,以便可以访问assets文件夹。