Gitlab不加载资产

Pro*_*bio 2 apache git gitlab

Gitlab不加载资产.我正在使用Gitlab 5.0和Apache服务器.

有人能帮我吗?提前致谢!

在此输入图像描述

Siv*_*iva 7

我假设你使用ProxyPass和相对路径.

  1. 停止GitLab服务
  2. 在/ home/git/gitlab文件夹中运行:(
    bundle exec rake assets:precompile RAILS_ENV=production RAILS_RELATIVE_URL_ROOT=/gitlab 确保将/ gitlab替换为你在unicorn.rb中提供的任何内容)
  3. 启动服务

您可以参考的主题:https://groups.google.com/forum/?fromgroups =#!topic /gitlabhq/BuaaCHoYoPo