Skip to content

Instantly share code, notes, and snippets.

@mignev
Forked from subosito/_usage
Created November 25, 2013 14:17
Show Gist options
  • Save mignev/7641828 to your computer and use it in GitHub Desktop.
Save mignev/7641828 to your computer and use it in GitHub Desktop.
curl https://raw.github.com/gist/3342482/57d1f618104185aa89044f934c4f86cb74e11553/rbenv-openshift.sh | bash
gem: --no-rdoc --no-ri
export RBENV_ROOT="${OPENSHIFT_DATA_DIR}.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fi
alias gem="gem --config-file ${OPENSHIFT_DATA_DIR}.gemrc"
#!/bin/bash
export RBENV_ROOT="${OPENSHIFT_DATA_DIR}.rbenv"
export RUBY_VERSION="1.9.3-p327"
if [ ! -d "${RBENV_ROOT}" ] ; then
cd $OPENSHIFT_DATA_DIR
curl https://raw.github.com/subosito/rbenv-installer/master/bin/rbenv-installer | bash
curl -o .gemrc https://raw.github.com/gist/3342482/31ba5e891a08dec86d205a99460512778472687b/gemrc
curl -O https://raw.github.com/gist/3342482/9a2ee2bd93ae1a5d6dd2093b4d71871915c66a74/rbenv-init.sh
source rbenv-init.sh
# ruby
rbenv install $RUBY_VERSION
rbenv global $RUBY_VERSION
# bundler
gem install bundler --config-file ${OPENSHIFT_DATA_DIR}.gemrc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment