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.
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.
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