Skip to content

Commit

Permalink
Added mongo aliases, modified redis config
Browse files Browse the repository at this point in the history
  • Loading branch information
dflems committed Jan 15, 2013
1 parent 968a2b3 commit 723983b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions db/aliases.zsh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
alias pg-up='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
alias pg-down='pg_ctl -D /usr/local/var/postgres stop -s -m fast'

alias redis-up="redis-server $ZSH/db/redis.conf > /dev/null &"
alias redis-up="redis-server $ZSH/db/redis.conf"
alias redis-down='killall redis-server'

alias mysql-up='mysql.server start'
alias mysql-down='mysql.server stop'

alias mongo-up='mongod --fork --logpath /usr/local/var/log/mongodb.log --logappend'
alias mongo-down='kill -2 $(cat /usr/local/var/mongodb/mongod.lock)' #safe
# default homebrew mongo log location
alias mongo-up='mongod --fork --logappend'
alias mongo-down='killall -2 mongod' #safe

0 comments on commit 723983b

Please sign in to comment.