Make sure you've completed all steps in the Development Setup Guide before starting on the following.

Add the following to your ~/.bash_profile or ~/.zshrc, replacing the following values:

alias bx='bundle exec'
alias bi='bundle install'
alias bu='bundle update'

alias dokku='$HOME/.dokku/contrib/dokku_client.sh'

export DOKKU_PORT='10044'
export BUNDLE_GEM__FURY__IO='<GEMFURY_TOKEN>'
export BUNDLE_JOBS='8'
export DIGITALOCEAN_ACCESS_TOKEN='<DIGITAL_OCEAN_TOKEN>'
export GITHUB_PERSONAL_ACCESS_TOKEN='<GITHUB_PERSONAL_ACCESS_TOKEN>'

# stop any currently running version of postgres, no matter the
# version of postgres currently defined by asdf
function pg_stop() {
  ASDF_POSTGRES_VERSION=$(psql -d postgres -c 'SELECT version();' | grep 'PostgreSQL' | awk '{print $2}') pg_ctl stop
}

Add the following to your ~/.ssh/config:

Host *.discolabs.com
  User disco
  Port 10044                                              

Add the following to your ~/.vimrc:

syntax on

Add the following to your ~/.irbrc

require 'irb/ext/save-history'
IRB.conf[:SAVE_HISTORY] = 200
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"

You should also take a look at Useful Tools.

ngrok: echo "http -subdomain=submarine-$(whoami) 3000" | xargs ngrok
web: bundle exec rails s -p 3000
webpack: bin/webpack-dev-server
foreman start -f Procfile.local -e .env.local