Skip to content

Instantly share code, notes, and snippets.

@Snack-X
Created March 2, 2016 03:48
Show Gist options
  • Save Snack-X/66d8247c1ed96bad5688 to your computer and use it in GitHub Desktop.
Save Snack-X/66d8247c1ed96bad5688 to your computer and use it in GitHub Desktop.
GitLab asset modification on Omnibus

GitLab asset modification on Omnibus

Ref: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/492#note_1902569

# Edit at /opt/gitlab/embedded/service/gitlab-rails/app/assets/

$ apt-get install acl

$ setfacl -R -m u:git:rwX /opt/gitlab/embedded/service/gitlab-rails/public/assets/
$ gitlab-rake assets:clean RAILS_ENV=production
$ gitlab-rake assets:precompile RAILS_ENV=production
$ chmod -R a+rX /opt/gitlab/embedded/service/gitlab-rails/public/assets/
$ setfacl -R -x u:git /opt/gitlab/embedded/service/gitlab-rails/public/assets/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment