Last active
June 14, 2017 13:42
-
-
Save ybart/f86702843ec14731b4ffa4ea6269d91c 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
# Install Oh My ZSH | |
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# Install ruby with RVM and Homebrew | |
$ xcode-select --install | |
$ sudo xcodebuild -license | |
$ gcc --version | |
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
$ brew doctor | |
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby | |
# Install PostgreSQL and Redis | |
$ brew install postgresql redis | |
$ brew services start postgresql | |
$ brew services start redis | |
# Configure Git | |
$ git config --global color.ui true | |
$ git config --global user.name "Your NAME" | |
$ git config --global user.email "[email protected]" | |
$ git config --global alias.co checkout | |
$ git config --global alias.ci commit | |
$ git config --global alias.st status | |
# Use your SSH key to get Rails application or create a new one | |
$ cat ~/.ssh/id_rsa.pub | |
$ ssh-keygen -t rsa -C "<[email protected]>" -b 4096 | |
$ pbcopy < ~/.ssh/id_rsa.pub | |
$ git clone [email protected]:yourname/yourrepository.git | |
# Run tests and launch Rails application | |
$ cd yourrepository | |
$ rvm install ruby-2.4.0 | |
$ cd ..; cd yourrepository | |
$ gem install bundler | |
$ bundle | |
$ rake db:create db:migrate | |
$ rake | |
$ rails s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment