Error when executing heroku run python manage.py syncdb

When I execute this line: heroku run python manage.py syncdb I get this error: Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? Everything works locally, I have installed precise32 version.

Sorry You must be a logged in, registered user to answer a question.

Answers

Hi, I've been getting exactly the same error as well, were you able to find a solution?

I have managed to fix the problem. 1. Remove from git the local.py file using: git rm --cached microblog/settings/local.py 2. Add microblog/settings/local.py to .gitignore 3. Commit the changes: git commit -am "Added local.py to .gitignore" 4. Push the changes to heroku: git push heroku master 5. Run the syncdb command: heroku run python manage.py syncdb

This should solve the problem, it did for me.

same problem. followed instructions and worked for me.
jz8408 on
Was struggling with this problem for an hours and fixed it with your suggestion. Really thanks :)
hollastic on
Ran into the exact same problem, and following these steps fixed it for me. Thank you!
Koji on

It doesn't work, the same error shows up. Thank you for your suggestion.

Try adding: microblog/settings/local.py to the .gitignore file ?

or commenting out the DATABASES = {....} bit in the local.py file and see if that works

Having the same issue - http://stackoverflow.com/questions/14574827/gswd-heroku-django-manage-py-issue but cannot seem to get a solution. Probably need to re - initialise or clear the commit?
steve on