PG::ConnectionBad in ArticlesController#index

could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Extracted source (around line #21):
19
20
21
22
23
24
              
scope :with_valid_product_price, -> { joins(:product).merge(Product.with_valid_price) }
scope :published, -> { where(published: true) }
def product_title
product.present? ? product.short_title : ''

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

None

Response

Headers:

None