ocsigen / ocsigen-start

Ocsigen-start: Higher-level library to develop Web and mobile applications with users, (pre)registration, notifications, etc.
Other
75 stars 31 forks source link

Problems with database setup in template #538

Open abhi18av opened 5 years ago

abhi18av commented 5 years ago

Hello everyone,

There are still some problems that I face wrt running this template ( this issue is derived from https://github.com/ocsigen/ocsigen-start/issues/528 )

I am using macOS and have installed postgres via homebrew - I have confirmed that all the dependencies are installed using the mentioned opam depext ocsigen-start command.

But when I try to initiate the database, I run across the following error

Abhinavs-MacBook-Pro:myproject eklavya$ make db-status
/usr/local/bin/pg_ctl -D local_db -l local_db/log status
pg_ctl: no server running
make: *** [db-status] Error 3

I have tried restarting the postgresql service

Abhinavs-MacBook-Pro:myproject eklavya$ brew services restart postgresql
Stopping `postgresql`... (might take a while)
==> Successfully stopped `postgresql` (label: homebrew.mxcl.postgresql)
==> Successfully started `postgresql` (label: homebrew.mxcl.postgresql)

But so far the problem persists.

jrochel commented 5 years ago

Did you run make db-start?