-
-
Save mignev/7641828 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://raw.github.com/gist/3342482/57d1f618104185aa89044f934c4f86cb74e11553/rbenv-openshift.sh | bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem: --no-rdoc --no-ri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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