Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Select rvm ruby version in php shell_exec function
<?php
$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.