Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
set RUBYLIB when running bundle in portusctl
Browse files Browse the repository at this point in the history
We have found that under certain circumstances, portusctl fails to run
bundler.

After debugging it, we found out that on our test machine RUBYLIB was
set as

/usr/lib64/ruby/gems/2.1.0/gems/bundler-1.10.6/lib/

which was causing bundler not being able to run, since this is a
different version than the one we have in /srv/Portus/vendor/....

My guess is that this is because of rubygem-bundler being installed on
that system.

This commit sets that environment variable to our bundler directory.

fix issue#612
  • Loading branch information
jordimassaguerpla authored and mssola committed Dec 4, 2015
1 parent 260eace commit 3fdce03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packaging/suse/bin/portusctl
Expand Up @@ -3,6 +3,7 @@
export RAILS_ENV=production
export GEM_PATH=/srv/Portus/vendor/bundle/ruby/2.1.0/
export BUNDLER_BIN=/srv/Portus/vendor/bundle/ruby/2.1.0/bin/bundler.ruby2.1
export RUBYLIB=$(ls -d /srv/Portus/vendor/bundle/ruby/2.1.0/gems/bundler*)/lib/

cd /srv/Portus
$BUNDLER_BIN exec packaging/suse/portusctl/bin/portusctl "$@"

0 comments on commit 3fdce03

Please sign in to comment.