Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #4782

Closed
Open
Created Aug 14, 2013 by Administrator@rootOwner

Using gitlab with RVM

Created by: WilHall

For anyone having trouble using gitlab with an RVM installation of Ruby, it is easy to do using wrappers:

Create a wrapper for the bundle command and RVM ruby you want:

wil@wilhall:/home/git/gitlab$ which ruby
/usr/local/rvm/rubies/ruby-1.9.3-p448/bin/ruby
wil@wilhall:/home/git/gitlab$ rvm wrapper ruby-1.9.3-p448 ext_1.9.3 bundle
Saving wrappers to '/usr/local/rvm/bin'.
wil@wilhall:/home/git/gitlab$ ls /usr/local/rvm/bin/ext_1.9.3_bundle
/usr/local/rvm/bin/ext_1.9.3_bundle

Once you have created the wrapper, simply replace the bundle command anywhere you see it in the gitlab installation guide with your wrapper /usr/local/rvm/bin/ext_1.9.3_bundle.

Make sure to also replace the bundle command inside the provided init.d script. I usually do this by creating a variable for the bundle path:

BUNDLE=/usr/local/rvm/bin/ext_1.9.3_bundle

And using it throughout the script. (Example: http://wilhall.com/static/gitlab)

If you perform setup and launch (via init.d) of gitlab using a bundle, you can target any specific RVM install and not have to worry about changing the active version via `rvm use`` - GitLab will always run under the same version of ruby.

Assignee
Assign to
Time tracking