草庐IT

heroku-postgres

全部标签

windows - Heroku CLI 在 babun 中失败

我在尝试将Heroku与babun一起使用时遇到以下问题在基于cygwin的Windows10上。我已经在我的Windows机器上安装了Herokutoolbelt,CLI似乎可以在cmd中运行:但是在babun上我得到以下错误:C:\ProgramFiles(x86)\Heroku\ruby-1.9.3\bin\ruby.exe:Nosuchfileordirectory--/cygdrive/c/ProgramFiles(x86)/Heroku/bin/heroku(LoadError)我认为这可能与babun的文件夹结构有关,但我正在努力进行全面诊断。

windows - 如何打开postgres命令行?

我已经安装了postgres。如何打开postgres命令行?当我打开命令提示符时,我有MicrosoftWindows[Version10.0.17134.590](c)2018MicrosoftCorporation.Allrightsreserved.C:\Users\dhanr>如何导航到postgres命令行,因为我的最终目标是运行pg_dumpdbname>outfile命令。 最佳答案 你应该使用psql命令行工具。您可以在安装目录中找到psql。示例;C:\ProgramFiles\PostgreSQL\10\bin

windows - 你如何连接到 Heroku 中的本地 PostgreSQL?

当我研究这个时,我发现教程here缺少关键信息,这里有几个问题,网上有关于本教程的一些投诉。我想知道这里是否有人成功连接到Windows中的Heroku本地Postgresql并且可以帮助我。目前我坚持使用这个命令c:\>exportDATABASE_URL=postgresql://localhost:5432/shouter'export'isnotrecognizedasaninternalorexternalcommand,operableprogramorbatchfile.有解决办法吗? 最佳答案 来自*nix的expo

windows - 记录 postgres 查询消息

如何将查询结果消息写入PostgreSQL中的日志文件,以告知用户查询是否成功以及受影响的记录数。我尝试将log_statement更改为“全部”并将log_min_duration_statement更改为0,但我得到的只是查询文本。是否可以将这些消息重定向到Windows操作系统中的日志文件? 最佳答案 你可以使用GETDIAGNOSTICS为此……如果您是super用户,您可以将结果保存到文件中……createtabletablename(versionint);insertintotablenameselect9;do$$d

django - 在Windows 10中将pg:push用于Heroku

我在尝试将postgis数据库从本地计算机推送到windows10中的heroku时遇到问题。我认为这个问题与“env”有关,它可以在linux等中设置,但我不确定如何在windows中设置。herokupg:pushMAPPPDDATABASE_URL--appmapppd上面(其中mappd是我的本地postgres/postgis数据库,database_url是我的heroku应用程序上的数据库)只提供给我:DLisdeprecated,pleaseuseFiddle'env'isnotrecognizedasaninternalorexternalcommand,operab

windows - 使用 npm 安装 postgres 问题

我在安装时遇到问题pg通过我的Windows机器上的npm。它提示python但我添加了python作为环境。变数很多都无济于事。这些是我尝试声明环境的所有方式。变种。C:/ProgramFiles/Python“C:/ProgramFiles/Python”C:/ProgramFiles/Python/python.exe“C:/ProgramFiles/Python/python.exe”这是错误:D:\Projects\GitHub\inmotion>npm-ginstallpgnpmhttpGEThttps://registry.npmjs.org/pgnpmhttp200ht

python - 适用于 windows 和 postgres 8 的 psycopg2 二进制包?

windows和postgres8的psycopg2二进制包在哪里?我只能在http://www.stickpeople.com/projects/python/win-psycopg/上找到postgres9的版本页面底部有一个旧版本的链接,但它并没有真正的帮助。编辑:我能找到它们,请看下面我的回答 最佳答案 我刚发现postgres8的二进制包开始于http://www.stickpeople.com/projects/python/win-psycopg/index.2.2.1.htmlhtml页面是链接的,因此我只需重复向下

windows - Heroku Toolbelt Windows - Rails 控制台命令历史

在Windows上使用Heroku工具带时是否可以获取Rails控制台命令行历史记录?herokurunconsole这不适用于使用版本2.33.1的Windows7。 最佳答案 这应该可以完成工作:herokurunrailsc 关于windows-HerokuToolbeltWindows-Rails控制台命令历史,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/1356672

windows - 无法安装 heroku 核心插件

Windows8.1、64b上周一切顺利。每当我运行heroku命令时,它都会尝试安装heroku核心插件,例如:C:\Users\Usr\Documents\Aptana3_Workspace\mobile-site>herokurunInstallingcorepluginsheroku-apps,heroku-fork,heroku-git,heroku-local,heroku-run,heroku-status...?module.js:338?throwerr;?^??Error:Cannotfindmodule'./bin/npm-cli.js'?atFunction.M

windows - 移动 pgdata 目录后,Postgres 服务不会在 Windows 中启动

我关注了theseinstructions将Postgres数据目录从C:\Users\username\Documents\dir\postgres96_data移动到C:\Users\username\Documents\postgres96_data。现在Postgres服务不会启动。尝试手动启动它会产生以下消息(从pt-br自由翻译):"Thepostgres-x64-9.6serviceonLocalComputerstartedthenstopped.Someservicesstopautomaticallyiftheyarenotbeeingusedbyotherserv