Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Standalone postgres and lockfiles on ubuntu #3

Open
kswope opened this issue May 27, 2016 · 0 comments
Open

Standalone postgres and lockfiles on ubuntu #3

kswope opened this issue May 27, 2016 · 0 comments

Comments

@kswope
Copy link

kswope commented May 27, 2016

pushy ubuntu wants postgres to put its lockfile in /var/run/postgres which causes problems when the instructions for this assignment call for running a local postgres. I think the author's OS allows postgres' lockfile to be in /tmp, which causes no friction.

> foreman start
FATAL:  could not create lock file "/var/run/postgresql/.s.PGSQL.6432.lock": Permission denied

Feeding postres a '-k' switch in the Procfile resolved the problem for me

web: bundle exec rails s -p 4000
pg: postgres -D pg_data -p 6432 -k /tmp
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant