coderbunker / timesheet-backend

Timesheet Datawarehouse backend
MIT License
1 stars 0 forks source link

Instructions for running db and postgraphile server #20

Open sam123evers opened 6 years ago

sam123evers commented 6 years ago

The instructions in the readme and not very good and need revising

sudo -u _postgres (for macosx)

this command is necessary and is not found in the readme anywhere postgraphile -c $USER:localhost:5432/timesheet -s timedata -o

rngadam commented 6 years ago

that's not right. you can run the database by following the homebrew instructions:

$ brew info postgresql
[...]
To have launchd start postgresql now and restart at login:
  brew services start postgresql
Or, if you don't want/need a background service you can just run:
  pg_ctl -D /usr/local/var/postgres start