Gitlab does not load assets

送分小仙女□ 提交于 2019-12-08 02:27:55

问题


Gitlab does not load assets. I am using Gitlab 5.0 with Apache server.

Can someone help me? Thanks in advance!


回答1:


I am assuming you use ProxyPass and relative path.

  1. Stop GitLab service
  2. Run this in your /home/git/gitlab folder :
    bundle exec rake assets:precompile RAILS_ENV=production RAILS_RELATIVE_URL_ROOT=/gitlab (Make sure to replace /gitlab to whatever you have given in unicorn.rb)
  3. Start the service

A thread you can refer: https://groups.google.com/forum/?fromgroups=#!topic/gitlabhq/BuaaCHoYoPo



来源:https://stackoverflow.com/questions/16195378/gitlab-does-not-load-assets

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