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

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

问题描述

Gitlab不会加载资产。我使用Gitlab 5.0和Apache服务器。



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

解决方案

我假设您使用ProxyPass和相对路径。


  • 在您的/ home / git / gitlab文件夹中运行:

    exec rake assets:precompile RAILS_ENV = production RAILS_RELATIVE_URL_ROOT = / gitlab
    (确保将/ gitlab替换为您在unicorn.rb中给出的任何内容)

  • 启动服务

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


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

    Can someone help me? Thanks in advance!

    解决方案

    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

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

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