Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Select rvm ruby version in php shell_exec function
$RUBY_CMD = 'source "$HOME/.rvm/scripts/rvm"; $HOME/.rvm/wrappers/ruby-2.3.1p112/ruby';
$output = shell_exec("$RUBY_CMD ./my_ruby_script.rb");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.