# Can't run my Discourse locally

**URL:** <https://meta.discourse.org/t/cant-run-my-discourse-locally/41226>\
**Category:** Development\
**Created:** [Mars 17, 2016, 7:45 UTC](https://meta.discourse.org/t/cant-run-my-discourse-locally/41226 "2016-03-17T19:45:45Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![stevenpslade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevenpslade/32/53550_2.png) [@stevenpslade](https://meta.discourse.org/u/stevenpslade)\
**Post date:** [Mars 17, 2016, 7:45 UTC](https://meta.discourse.org/t/cant-run-my-discourse-locally/41226/1 "2016-03-17T19:45:46Z")

</div>

I go `rails c` then I get this…

```
URGENT: could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
 Failed to initialize site default

```

And then opening localhost:3000 I see:

> PG::ConnectionBad at /  
> could not connect to server: No such file or directory  
> Is the server running locally and accepting  
> connections on Unix domain socket “/tmp/.s.PGSQL.5432”?

The problem is new and I have run my local Discourse fine before.

---

_[View the full topic](https://meta.discourse.org/t/cant-run-my-discourse-locally/41226)._
