2

Gitlab 不加载资产。我正在使用带有 Apache 服务器的 Gitlab 5.0。

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

在此处输入图像描述

4

1 回答 1

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

于 2013-04-25T14:53:11.183 回答