我正在学习Udemy课程,并将Flask应用程序部署到Heroku。 问题是当我输入
时heroku pg:psql --app *appname*
我明白了:
psql: SSL SYSCALL error: Connection reset by peer (0x00002746/10054)
FATAL: no pg_hba.conf entry for host "37.125.61.91", user "whlcorobevpteq", database "dcmbbmbl1bbrgd", SSL off
这是我的相关代码:
app.config['SQLALCHEMY_DATABASE_URI']='postgres://whlcorobevpteq:a234a0b5f7300d9f6e43d566b5c849c3b1b20fb8d87ad6b994df2c18b686d624@ec2-174-129-240-67.compute-1.amazonaws.com:5432/dcmbbmbl1bbrgd?sslmode=require'
db=SQLAlchemy(app)