Skip to content

Instantly share code, notes, and snippets.

@amirnissim
Last active January 2, 2016 08:59
Show Gist options
  • Select an option

  • Save amirnissim/8280431 to your computer and use it in GitHub Desktop.

Select an option

Save amirnissim/8280431 to your computer and use it in GitHub Desktop.
RD_DIR=~/projects/evme/rd
alias rd='cd $RD_DIR'
alias rdenv='rd && source rd-env/bin/activate'
alias rdshell='rdenv && cd rd/rd_service && ipython -i $RD_DIR/shell.py'
alias rdpostgres='postgres -D /usr/local/var/postgres'
alias rdworker='rdenv && cd rd/rd_service && python cli.py worker'
alias rdclearjobs='redis-cli del jobs'
alias rdweb='cd $RD_DIR/rd && honcho start -f Procfile.dev'
alias rdstop='killall postgres; killall redis-server; deactivate'
alias rdstart='rdstop;
(
rdenv &&
(rdpostgres & sleep 2) &&
(redis-server & sleep 2) &&
rdweb
);
rdstop;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment