Skip to content

Instantly share code, notes, and snippets.

@moretea
Created August 23, 2011 11:35
Show Gist options
  • Select an option

  • Save moretea/1164905 to your computer and use it in GitHub Desktop.

Select an option

Save moretea/1164905 to your computer and use it in GitHub Desktop.
maarten@web1:~/current$ sudo -u www-data GEM_HOME=/srv/rails/gems /srv/rails/nbb_production/app/current/script/delayed_job startsudo: sorry, you are not allowed to set the following environment variables: GEM_HOME
maarten@web1:~/current$ sudo -u www-data GEM_HOME=/srv/rails/gems /srv/rails/nbb_production/app/current/script/delayed_job start
sudo: sorry, you are not allowed to set the following environment variables: GEM_HOME
maarten@web1:~/current$ export GEM_HOME=/srv/rails/gems
maarten@web1:~/current$ sudo -u www-data /srv/rails/nbb_production/app/current/script/delayed_job start
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- bundler/setup (LoadError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /srv/rails/nbb_production/app/current/script/delayed_job:4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment