我在Windows 10上使用Heroku CLI。安装后的第一天工作正常,但第二天(或如此)它在启动后挂起:
C:\Users\{User}>heroku
Run Code Online (Sandbox Code Playgroud)
就这样。没有输出到控制台,没有日志(没有error.log)。它永远持续(不是120秒,就像这里:Heroku CLI无响应)
我在2017年10月10日重新安装了CLI。今天是14.10,我的文件夹包含以下文件:清洁之前的文件 夹视图 autoupdate.log包含:
[2017-10-10T13:36:14+03:00] starting `C:\Program Files (x86)\Heroku\bin\\heroku.cmd update --autoupdate` from
heroku-cli: Updating CLI... already on latest version: 6.14.34-1fcf80e
heroku-cli: Updating plugins... done
[2017-10-11T22:36:40+03:00] starting `C:\Program Files (x86)\Heroku\bin\\heroku.cmd update --autoupdate` from logs
heroku-cli: Updating CLI... already on latest version: 6.14.34-1fcf80e
heroku-cli: Updating plugins... Waiting for all commands to finish
heroku-cli: Updating plugins... done
[2017-10-14T01:13:34+03:00] starting `C:\Program Files (x86)\Heroku\bin\\heroku.cmd update --autoupdate` from logs
heroku-cli: Updating CLI... already on latest version: 6.14.34-1fcf80e …Run Code Online (Sandbox Code Playgroud) 首先,我想说,我不是数据库专家,也没有使用 heroku 服务的经验。
我想将播放框架应用程序部署到 heroku 服务。我需要一个数据库来这样做。所以我用这个命令创建了一个 postgresql 数据库,因为它受 heroku 支持:
Users-MacBook-Air:~ user$ heroku addons:create heroku-postgresql -a name_of_app
Run Code Online (Sandbox Code Playgroud)
我得到了这个作为回应
Creating heroku-postgresql on ? benchmarkingsoccerclubs... free
Database has been created and is available
! This database is empty. If upgrading, you can transfer
! data from another database with pg:copy
Run Code Online (Sandbox Code Playgroud)
所以数据库现在已经存在,但当然是空的。对于开发,我使用了本地 H2 数据库。
现在我想使用 sql 文件在 heroku 上填充数据库,因为它有很多数据。但我找不到如何做到这一点。是否有适用于 heroku CLI 的命令,我可以在其中将 sql 文件作为参数移交并填充数据库?文件基本上由几个创建的表和大约 10000 个插入命令组成。
编辑:我也有来自所有表的 CSV 文件。因此,如果有一种方法可以让我用这些填充 Postgres 数据库也很棒
我想将我的应用程序部署为来自 Gitlab CI/CD 管道的容器。
几天前,我可以部署我在 heroku devCenter 中编写的 docker 镜像。
docker login --username=_ --password=$(heroku auth:token) registry.heroku.com
并将其推送到 heroku 注册表。
docker 标签 imageregistry.heroku.com/app/process-type
docker push registry.heroku.com/app/process-type
但随后他们分两步更改了部署
heroku 硬币容器:推
heroku 容器:释放
在更新之前,它是在容器被推送到容器注册表时部署的。现在我需要以任何方式释放它。
我尝试将图像重命名为 release 并尝试安装 heroku CLI,但随后我无法登录 heroku 注册表。
你是怎么解决的?
What is the difference between heroku ps:exec and heroku run bash? I am just trying to understand the concept. Both seem to be establishing an SSH-tunnel to a remote container/dyno. So why does heroku ps:exec require a dyno-restart on the first use? It seems this command is more generic (since it uses a default shell), so what needs to be configured/installed for it?
我已经在 Windows 上安装了 Heroku CLI,
登录时面临以下失败:
Error: ENOENT: no such file or directory, open 'H:/_netrc'
Run Code Online (Sandbox Code Playgroud)
heroku/7.41.1 win32-x64 node-v12.16.2
C:\Windows\system32>heroku login
heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://cli-auth.heroku.com/auth/cli/browser/2785a37e-18ec-43f0-a686-89cc597d2443
Logging in... done
Error: ENOENT: no such file or directory, open 'H:/_netrc'
C:\Windows\system32>```
Please help me with this.
Thanks,
Sagar
Run Code Online (Sandbox Code Playgroud) 我通过 exe 安装程序在 Windows 10 上安装了 heroku cli。
当我尝试运行heroku --version命令或heroku login
命令时,命令窗口没有响应。它不会给出任何错误。
然后我卸载它并使用安装它npm install -g heroku-cli
但得到相同的结果。
节点版本 - 8.7.0
我有一个现有的 Ruby on Rails 应用程序,其中已加载数据。
我使用了默认的 SQLite 数据库设置,因此这是我所有数据所在的位置,但我需要将所有数据放入 Heroku 上的 Postgres 数据库中。
我怎么做?
I'm trying to run commands for my heroku app in my console, but it keeps telling me "Couldn't find that app." even though when I run heroku apps in my console it tells me I have one app called worldofwarcraft-api
So heroku recognizes my app in the apps list, but I can't run any commands to access it. The line I want to run is
heroku ps:scale web=1 --app worldofwarcraft-api
Run Code Online (Sandbox Code Playgroud)
I'm trying to troubleshoot why my API returns a 503 …
在git push heroku master我的 spring-maven-java 项目上,Heroku cli 识别出它是一个 Java 项目并尝试构建它。它打印出它正在安装JDK 1.8并且在很多终端输出之后它说[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project myProject: Fatal error compiling: invalid target release: 10.0.2
行家-编译器插件配置源和目标明确地确定的Java 10.0.2采用指定为通过Heroku的文档上可接受的,并且java.runtime.version=10.0.2在这两个application.properties和system.properties
我想我需要让 Heroku 在开始时安装正确的 JDK。如何让 Heroku 获取和使用 Java 10?
请参阅我尝试修改的程度 maven-compiler-plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>10.0.2</source>
<target>10.0.2</target>
<release>10.0.2</release>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>6.2</version>
</dependency>
</dependencies>
</plugin>
Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Windows 10 上使用heroku run bash。
我尝试允许端口 5000 通过防火墙并以管理员身份重新启动命令提示符。
我还缺少什么来建立连接吗?
heroku-cli ×10
heroku ×8
postgresql ×2
.netrc ×1
database ×1
docker ×1
heroku-api ×1
java ×1
python ×1
sqlite ×1