rvmsudo in vagrant with environment variables

Skip to first unread message

a wong

unread,
May 24, 2013, 9:45:57 PM5/24/13
to rubyversi...@googlegroups.com
Hi,
Not sure if I should file a bug for this. 

I am using rvm inside of a vagrant VM and running rails on port 80 with rvmsudo like this: rvmsudo rails server -p 80

I am also using the better_errors gem which inside vagrant you can use this gem: http://github.com/MOZGIII/vagrant-host-path to set an environment variable. But: when I run rvmsudo it needs to pass this environment var. 

I suppose rvmsudo was designed to kind of clean your environment vars, but I need that particular one for better_errors. I ended up whitelisting it like in this commit: https://github.com/wayneeseguin/rvm/issues/1014

But I'd like to know if there is a better way to do this.

thanks

a. wong

mpapis

unread,
May 26, 2013, 3:45:58 PM5/26/13
to rubyversi...@googlegroups.com
the environment filtering is done in here: https://github.com/wayneeseguin/rvm/blob/master/bin/rvmsudo#L56 - just change the variable name to: http_vagrant_host_path
Reply all
Reply to author
Forward
0 new messages