主题:Heroku问题:在heroku中安装我的节点js应用程序后,我在package.json中进行了一些更改.现在,当我尝试再次推送更改时,未安装新的依赖项.Heroku从缓存中挑选依赖项.
如何在heroku中禁用缓存?
我已经安装了 heroku 工具带,但每次我执行“heroku 登录”或任何其他 Heroku 命令(如“heroku 版本”)时,我都会得到类似的信息:
autoupdate::'EACCES': EACCES: 权限被拒绝,mkdir ? '/home/vanessa/.cache/heroku/update.lock.readers.lock' ?'EACCES':EACCES:权限被拒绝,打开?'/home/vanessa/.cache/heroku/plugins.json' ?'EACCES':EACCES:权限被拒绝,mkdir ? '/home/vanessa/.cache/heroku/update.lock.readers.lock'
我已经删除并重新安装,我也做了 sudo apt-get upgrade heroku 来更新 CLI,但是我仍然得到相同的结果。我的操作系统是 Ubuntu Linux。
我正在尝试为 Heroku 上托管的 git 存储库的分支执行 git push(强制)操作。
不幸的是,长时间等待后超时。我已经尝试过多次,但出现相同的504 GATEWAY_TIMEOUT错误:
$ git push --force my-heroku-remote my-feature-branch:master
Counting objects: 12345, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (12345/12345), done.
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 GATEWAY_TIMEOUT
fatal: The remote end hung up unexpectedly
Writing objects: 100% (12345/12345), 347.86 MiB | 98.00 KiB/s, done.
Total 12345 (delta 123), reused 1234 (delta 123)
fatal: The remote end hung up unexpectedly
Everything …Run Code Online (Sandbox Code Playgroud) 我已将一些更改推送到 Heroku 上的远程分支,我需要将此分支合并到 Heroku 上的主分支以触发应用程序的新构建。这可以做到吗?这可以使用 Heroku-cli 来完成吗?
我正在尝试在 Heroku 中托管一个用于 Discord 的机器人,但是在执行git push heroku master此操作时出现以下错误:
Node.js app detected
remote: parse error: Expected another key-value pair at line 41, column 1
remote: ! Unable to parse package.json
remote:
remote:
remote: -----> Build failed
remote: parse error: Expected another key-value pair at line 41, column 1
remote: parse error: Expected another key-value pair at line 41, column 1
remote: parse error: Expected another key-value pair at line 41, column 1
Run Code Online (Sandbox Code Playgroud)
package.json这是文件的内容
{
"name": "sebas",
"version": "0.0.5", …Run Code Online (Sandbox Code Playgroud) $ heroku plugins:install heroku-container-registry
Run Code Online (Sandbox Code Playgroud)
当我运行上面的命令时,结果是:
» Error: heroku-container-registry is blacklisted
Run Code Online (Sandbox Code Playgroud)
被列入黑名单是什么意思;技术过时了吗?我可以解决它吗?
请参阅下面的@Chris 解决方案。在@Chris 教我我不需要之后heroku plugins:install,我尝试了下一步以
供将来参考,我遇到了一系列其他错误。在连接期间的 Heroku 错误中:
Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/version: open //./pipe/docker_engine:
The system cannot find the file specified.
In the default daemon configuration on Windows, the docker client must be run elevated to connect.
This error may also indicate that the docker daemon is not running.
Run Code Online (Sandbox Code Playgroud)
然后我尝试为 Windows 运行 Docker 桌面,遇到 Docker 错误,将按照这些说明进行操作
必须在 BIOS 中启用硬件辅助虚拟化和数据执行保护。请参阅 https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization-must-be-enabled
我已经在 Heroku 上成功部署了我的应用程序,添加了附加组件,通过控制面板设置更新了 env var,等等。我现在正在考虑事后创建一个 app.json。是否可以通过某种方式查询 Heroku 以从我创建的托管应用程序生成 app.json?
我在通过 Docker 注册表将n8n部署到 Heroku 时遇到问题,并且无法弄清楚我做错了什么。任何帮助将不胜感激。
手动配置 Postgres 版本 11:
heroku addons:create heroku-postgresql:hobby-dev --version=11 -a my-app
Run Code Online (Sandbox Code Playgroud)
Dockerfile:
FROM n8nio/n8n
Run Code Online (Sandbox Code Playgroud)
heroku.yml:
FROM n8nio/n8n
Run Code Online (Sandbox Code Playgroud)
日志通过heroku logs --tail:
setup:
#addons:
# - plan: heroku-postgresql:hobby-dev
# version: 11
# as: DATABASE
config:
SUBDOMAIN: "my-app"
DOMAIN_NAME: "herokuapp.com"
NODE_ENV: "production"
TZ: "Europe/Berlin"
GENERIC_TIMEZONE: "Europe/Berlin"
N8N_HOST: "${SUBDOMAIN}.${DOMAIN_NAME}"
N8N_PORT: "${PORT}" #each app in heroku gets randomly assigned IP on start
N8N_PROTOCOL: "https"
N8N_ENCRYPTION_KEY: "mysupersecretkey"
WEBHOOK_TUNNEL_URL: "https://${SUBDOMAIN}.${DOMAIN_NAME}/"
VUE_APP_URL_BASE_API: "https://${SUBDOMAIN}.${DOMAIN_NAME}/"
DB_TYPE: "postgresdb"
DB_POSTGRESDB_HOST: "dbhost"
DB_POSTGRESDB_DATABASE: "dbname"
DB_POSTGRESDB_PORT: 5432 …Run Code Online (Sandbox Code Playgroud) app123@heroku.com3rd party support要求我提供 heroku 应用程序 ID(the )。我很确定有某种方法可以得到它,但我不知道。heroku info即使在更详细的模式下,它也没有出现--json。
我怎样才能取回它?
当我尝试推送新项目时,在终端中运行 git push heroku main 时出现以下错误:
remote: INFO: pip is looking at multiple versions of pypiwin32 to determine which version is compatible with other requirements. This could take a while.
remote: ERROR: Ignored the following versions that require a different python version: 1.9.5 Requires-Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <3.
7
remote: ERROR: Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32) (from versions: none)
remote: ERROR: No matching distribution found for pywin32>=223
remote: ! Push rejected, …Run Code Online (Sandbox Code Playgroud) heroku-cli ×10
heroku ×9
git ×3
node.js ×3
deployment ×1
discord.js ×1
django ×1
docker ×1
json ×1
python ×1