Skip to content

Instantly share code, notes, and snippets.

@vnavarro
Created January 20, 2014 20:11
Show Gist options
  • Save vnavarro/8528094 to your computer and use it in GitHub Desktop.
Save vnavarro/8528094 to your computer and use it in GitHub Desktop.
Things to place in my vagrant/machine automation
#Postgres
##Configuração
[Check status no stackoverflow](http://stackoverflow.com/questions/7975414/check-status-of-postgresql-server-mac-os-x)
export PGDATA='/usr/local/var/postgres'
export PGHOST=localhost
alias start-pg='pg_ctl -l $PGDATA/server.log start'
alias stop-pg='pg_ctl stop -m fast'
alias show-pg-status='pg_ctl status'
alias restart-pg='pg_ctl reload'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment