Skip to content

Instantly share code, notes, and snippets.

@darkhelmet
Created November 5, 2012 23:45
Show Gist options
  • Save darkhelmet/4021205 to your computer and use it in GitHub Desktop.
Save darkhelmet/4021205 to your computer and use it in GitHub Desktop.
alias rake='bundle exec rake'
function start() {
dep=$1
case $dep in
pg) pg_ctl start --pgdata /usr/local/var/postgres --log log/postgres.log ;;
mc) memcached -d ;;
*)
echo "start {pg|mc}"
return 1
;;
esac
}
function stop() {
dep=$1
case $dep in
pg) pg_ctl stop -m fast --pgdata /usr/local/var/postgres --log log/postgres.log ;;
mc) pkill memcached ;;
*)
echo "stop {pg|mc}"
return 1
;;
esac
}
function restore() {
pg_restore --verbose --clean --no-acl --no-owner -d darkblog2_development $1
}
safe_gopath_export $PWD
config=`heroku config -s`
export `echo $config | tr ' ' '\n' | grep READABILITY_TOKEN`
export `echo $config | tr ' ' '\n' | grep POSTMARK_TOKEN`
export `echo $config | tr ' ' '\n' | grep FROM`
function watch() {
puncher 'killall -USR1 tinderizer' src/bookmarklet/bookmarklet.coffee
}
Last login: Fri Nov 2 15:49:14 on ttys004
~ » j Fire
/Users/darkhelmet/dev/github/darkhelmet/ForrestFire
~/dev/github/darkhelmet/ForrestFire (master) » . rc
~/dev/github/darkhelmet/ForrestFire (master) »
~/work/yardstick (staging) » ys
Usage: ys <command> [<args>]
Some useful ys commands are:
bugs Open FogBugz
cis Open the CIS server
commands List all ys commands
console SSH into the given environment
dbconsole Open up the rails dbconsole
deploy Deploy the application to staging or production
errors Open Airbrake
going Show what's going to the given environment
send Send a file and open a console in the environment
ssh SSH into the environment
start Start the parts of the application for development
stop Stop the parts of the application for development
tail Tail the logs on the given environment
See 'ys help <command>' for information on a specific command.
~/work/yardstick (staging) »
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment