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:
<GEMFURY_TOKEN>
value with the Disco Gemfury token, which is stored in 1Password;<DIGITAL_OCEAN_TOKEN>
with the Disco Digital Ocean token, which is stored in 1Password;<GITHUB_PERSONAL_ACCESS_TOKEN>
with a value generated following these instructions (when generating your Github token, call it something like "Disco Command Line" and make sure it has the repo
scope enabled).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