我有一个奇怪的问题 - 在启动我的风帆应用程序(它与postgres连接并部署在heroku上)有多个连接(大约10个)到数据库,因为它是免费帐户,如果我然后尝试启动应用程序localhost测试一些新代码我得到一个错误"角色连接太多".那么有谁知道为什么有这么多的数据库连接,我可以更改它,每个应用程序只有一个连接?
编辑:错误创建到PostgreSQL的连接:建立到PostgreSQL的连接"xwoellnkvjcupt"错误的角色太多的连接:"xwoellnkvjcupt"错误的角色太多的连接:错误错误挂钩加载失败:ORM(错误:过多的连接for role"xwoellnkv jcupt")错误:加载Sails核心时遇到错误!错误:错误:Connection.parseMessage上Connection.parseE(C:\ Studia\szachman2 \node_modules\sails-postgresql \node _modules\pg\lib\connection.js:561:11)中角色"xwoellnkvjcupt"的连接太多( C:\ Studia\szachman2 \node_modules\sails-postgresq l \node_modules\pg\lib\connection.js:390:17)at null.(C:\ Studia\szachman2 \node_modules\sails-postgresql \node_ modules\pg\lib\connection.js:98:18)在CleartextStream的CleartextStream.EventEmitter.emit(events.js:95:17).(_stream_readable.js:746:14)在CleartextStream.EventEmitter.emit(events.js:92:17)在emitReadable_(_stream_readable.js:408:10)在_stream_readable.js:401:7在process._tickDomainCallback(节点. JS:459:13)
这是我在尝试在localhost上测试一些新代码时经常遇到的错误.