# Installing Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Installing Ruby
# 改用相對輕量的rbenv取代肥肥的rvm
brew install rbenv ruby-build

echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile

rbenv install 2.6.3
rbenv global 2.6.3
# Installing Rails
gem install rails -v 6.0.0.rc1
rbenv rehash
# others
brew install mysql
brew install redis
brew install ssdb
brew install memcached
brew install postgres