我终于得到了我的Django应用程序部署在Heroku上,使用Vagrant和Postgres进行本地和生产。本地主机已启动并正在运行,并且我在管理员中添加用户。但是,当我运行Django on Vagrant,Postgres本地和Heroku都无法连接到服务器:没有这样的文件或目录
heroku run python manage.py syncdb
它barfs了这个错误:
psycopg2.OperationalError:无法连接到服务器:没有这样的文件或目录 是服务器本地运行并接受连接的Unix域套接字“ /tmp/.s.PGSQL.5432" ?
同样的事情发生时,我尝试访问管理在线:http://vast-sierra-7949.herokuapp.com/admin/
我是新来的Heroku,我尝试了几乎所有的入门教程,我能找到,包括
http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/
https://devcenter.heroku.com/articles/django,
https://github.com/callmephilip/django-heroku-bootstrap和
https://github.com/jpadilla/django-project-template
这最后的github链接居然让我来部署,之前我只是得到一个错误,当我跑
git push heroku master
和错误是:manage.py:错误:没有这样的选择: - noreload
我知道有几个帖子出现这个错误,但我已经通过尽可能多的找到了解决问题的运气。
谢谢你在前进,
安东尼
也许你会在这里找到答案:http://stackoverflow.com/questions/10596893/deploying-django-to-heroku-psycopg2-error – 2013-03-27 15:48:00