Skip to content

Instantly share code, notes, and snippets.

@matthutchinson
Created March 3, 2020 11:18
Show Gist options
  • Save matthutchinson/abec9e73dbbba13efa4fb254c4da3231 to your computer and use it in GitHub Desktop.
Save matthutchinson/abec9e73dbbba13efa4fb254c4da3231 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
# load default envrc
source_up
# auto-switch rubies
use chruby --auto
# node from ~/.nvmrc
use node
# app env vars
export DB_HOST=127.0.0.1
export STATSD_HOST=localhost
export GRAPHITE_HOST=localhost
# copied from .env but not STDOUT logging (too noisey)
export PORT=3000
export BINDING=127.0.0.1
export FREEAGENT_CACHE_STORE=memcached
export DISABLE_BULLET=true
# https://github.com/puma/puma-dev
export CONFIG=config/puma-dev.rb
export WORKERS=1
export THREADS=5
# add local bin to PATH, avoids bundle exec with binstubs
PATH_add ./bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment