Rails连接到由database.yml指定的数据库 [英] Rails Connecting to database specified by database.yml

查看:311
本文介绍了Rails连接到由database.yml指定的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近重新启动了POW。

I recently restarted POW. On reloading the Rails app I'm working on, it hung.

检查Rails的日志我每隔5-20秒就重复一次:

Checking Rails' logs I get the following repeating every 5-20 seconds:


连接到database.yml指定的数据库

我可以通过Rails控制台与Postgres数据库进行交互,所以没有问题。我没有改变我的database.yml中的任何东西几个星期,所以我不认为这个问题是有。

I can interact with the Postgres db without issue through the Rails console, so there is no problem there. I haven't changed anything in my database.yml for weeks, so I don't think the problem is there.

这可能是什么问题,如何调试?

What might be the problem and how can I debug it?

推荐答案

结果是由POW引起的

我使用`$ powder no_restarts'重置这个

I reset this using `$ powder no_restarts'

这篇关于Rails连接到由database.yml指定的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆