PostqreSQL in Rails: How do I make the server run locally AND accept connections on the Unix domain socket?

前端 未结 1 744
终归单人心
终归单人心 2021-01-14 19:28

So I\'m a newbie to Rails who\'s only used SQLite3 before, and I\'m struggling to even run a simple rake command when using PostgreSQL.

I\'m just trying to follow th

相关标签:
1条回答
  • 2021-01-14 20:22

    Your permissions are probably messed up. Try

    sudo chmod -R 777 /var/pgsql_socket/
    

    This gives open permissions to everyone, so it's fine for your development server needs.

    Now it should work.

    0 讨论(0)
提交回复
热议问题