Created
November 5, 2012 23:45
-
-
Save darkhelmet/4021205 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) » |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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