Skip to content

Instantly share code, notes, and snippets.

@hendrikbeck
Last active March 14, 2018 10:47
Show Gist options
  • Save hendrikbeck/5ca522a62323cdf924d5364ae06eb2fb to your computer and use it in GitHub Desktop.
Save hendrikbeck/5ca522a62323cdf924d5364ae06eb2fb to your computer and use it in GitHub Desktop.
Install Mac
# Update Homebrew
brew update
brew doctor
# RUBY: brauchen 2.3.1
ruby -v
brew install gpg
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 2.3.1
rvm use 2.3.1
# RBENV instead of RVM
#brew install rbenv ruby-build
#echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
#echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
#rbenv install -l
#rbenv install 2.3.1
#ruby -v # Sollte 2.3.1 anzeigen
# RAILS: brauchen 5.0.1
rails -v
gem update --no-ri --no-rdoc
gem update --system --no-ri --no-rdoc
gem install rails --no-ri --no-rdoc
# POSTGRES
brew install postgres
brew services start postgresql
# Heroku toolbelt
brew install heroku-toolbelt
heroku update
heroku login
mkdir ~/.ssh
ssh-keygen -t rsa
heroku keys:add
# Git checkout
git config --global user.name "Mona Lisa" # Falls noch nicht getan
git clone https://github.com/hendrikbeck/projectgamma.git
# rails
cd projectgamma
bundle install
rails db:create
rails db:migrate
rails s
# Others
# PGAdmin: https://www.pgadmin.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment