gpt4 book ai didi

ruby-on-rails - 如何在Heroku中访问数据库

转载 作者:行者123 更新时间:2023-12-03 18:26:21 25 4
gpt4 key购买 nike

因此,我想让用户在heroku上的应用程序中进行管理。开发应用程序时,可以通过rails c进行操作,也可以使用一些SQL查看器打开数据库文件。但是我该如何为heroku做呢?

最佳答案

要在heroku中运行rails控制台,必须使用heroku run rails console(假设您已安装heroku工具带)。

请参见https://devcenter.heroku.com/articles/getting-started-with-rails3#consolehttps://devcenter.heroku.com/articles/getting-started-with-rails4#console

关于ruby-on-rails - 如何在Heroku中访问数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20596173/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com