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

Standalone postgres and lockfiles on ubuntu #3

@kswope

Description

@kswope

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions