See the slides for details.
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew install postgresql
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
brew install rbenv
rbenv init
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
apt-get -y install postgresql postgresql-contrib libpq-dev
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
mkdir -p ~/.rbenv/plugins
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bashrc
source ~/.bashrc
git clone git@github.com:gautierdelorme/foggly.git
cd foggly
rbenv install
rbenv rehash
gem install bundler
rbenv rehash
bundle install
rbenv rehash
rails db:setup
rails s
Browse to http://localhost:3000
git pull
git checkout -b new_feature_branch
git add file1 file2 # add files manually to git if needed
git commit -am "my quick commit message"
git checkout master
git pull
git checkout new_feature_branch
git rebase master -i
git push -u origin new_feature_branch
https://github.com/gautierdelorme/foggly
Continuous Delivery based on Github Webhooks (push to master) and heroku.
Test the app: https://foggly.herokuapp.com
This project is licensed under the MIT License. See the LICENSE file for details.