Skip to content

Instantly share code, notes, and snippets.

@qiukun
Last active July 6, 2019 01:57
Show Gist options
  • Save qiukun/d7e352ab99c2f2fe4846 to your computer and use it in GitHub Desktop.
Save qiukun/d7e352ab99c2f2fe4846 to your computer and use it in GitHub Desktop.
Rails on #CloudStudio
sudo apt-get update -qq
sudo apt-get install -qq software-properties-common
sudo apt-add-repository -y ppa:brightbox/ruby-ng
sudo apt-get update -qq
sudo apt-get install -qq build-essential ruby2.6{,-dev} zlib1g-dev libsqlite3-dev
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
# cat >> ~/.gemrc <<EOF
# gem: --no-document
# EOF
sudo gem install bundler
bundle config mirror.https://rubygems.org https://gems.ruby-china.com
sudo gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment