如何连接到Heroku中的本地PostgreSQL? [英] How do you connect to local PostgreSQL in Heroku?

查看:582
本文介绍了如何连接到Heroku中的本地PostgreSQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我研究这个问题时,我发现教程这里缺失关键信息和这里有几个问题和投诉在线关于本教程的东西。我想知道如果有人在这里成功地连接到Heroku本地Postgresql在Windows和可以帮助我。目前我遇到这个命令

When I researched this I found that the tutorial here is missing crucial information and there are several questions here and complaints online about something about this tutorial. I am wondering if someone here successfully connected to Heroku local Postgresql in Windows and can help me. Presently I am stuck with this command

c:\>export DATABASE_URL=postgresql://localhost:5432/shouter
'export' is not recognized as an internal or external command,
operable program or batch file.

有没有解决方案?

推荐答案

在Windows中,来自* nix的 export 命令为 SET 应尝试:

The export command from *nix is SET in Windows, so you should try:

SET DATABASE_URL=postgresql://localhost:5432/shouter

以下是Windows命令参考页面 Windows CMD命令行

Here's a Windows commands reference page An A-Z Index of the Windows CMD command line.

这篇关于如何连接到Heroku中的本地PostgreSQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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