0

我正在尝试在 heroku 上部署我的 Grails 应用程序,但是在连接我的 mongo bean 时部署一直失败。

我使用的部署方法是heroku deploy:war.

我有MONGOLAB_URI可以使用命令 heroku config 检查的集合。阅读他们的插件文档,我认为应用程序中不需要 mongo 配置。

Stacktrace 提取如下:

Error initializing the application: 
Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'mongoTransactionManager': Cannot resolve reference to bean 'mongoDatastore' while setting bean property 'datastore'; nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'mongoDatastore': FactoryBean threw exception on object creation; nested exception is org.springframework.data.mongodb.CannotGetMongoDbConnectionException: Failed to authenticate to database [heroku_blahblah], username = [heroku_blahblah], password = [blahblah] 

有谁知道我错过了什么?

4

0 回答 0