Gitlab 不加载资产 [英] Gitlab does not load assets

查看:17
本文介绍了Gitlab 不加载资产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

有人可以帮助我吗?提前致谢!

Can someone help me? Thanks in advance!

推荐答案

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

I am assuming you use ProxyPass and relative path.

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

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

这篇关于Gitlab 不加载资产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆