could not connect to server: No such file or directory (PG::ConnectionBad)
<p>Yesterday wasn't this error. I didn't make any changes in my application.
Just went to sleep and now I get this.</p>

<p>Error:</p>

<pre><code>home/dartnyan/.rvm/gems/ruby-2.3.0/gems/activerecord-4.2.6/lib/
active_record/connection_adapters/
postgresql_adapter.rb:651:in `initialize': could not connect to server:
No such file or directory (PG::ConnectionBad)
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
</code></pre>

<p>database.yml</p>

<pre><code>default: &amp;default
  adapter: postgresql
  pool: 5
  imeout: 5000

development:
  adapter: postgresql
  database: shop_development
  pool: 5
  username: dartnyan
  password: kurt1245
test:
 adapter: postgresql
 encoding: unicode
 database: shop_test
 pool: 5
 username: dartnyan
 password: kurt1245
</code></pre>