【问题标题】:'git push heroku main' command looping install process\'git push heroku main\' 命令循环安装过程
【发布时间】:2022-11-24 08:34:35
【问题描述】:

我正在尝试从我的项目根文件夹部署到 Heroku。尽管构建似乎无休止地重复相同的过程。

如下

remote:        > mygym-gym@1.0.0 install
remote:        > cd server && npm install && cd ../client && npm install
remote:
remote:        
remote:        added 301 packages, and audited 302 packages in 4s
remote:
remote:        16 packages are looking for funding
remote:          run `npm fund` for details
remote:
remote:        found 0 vulnerabilities
remote:        
remote:        > mygym-gym@1.0.0 install
remote:        > cd server && npm install && cd ../client && npm install
remote:
remote:        
remote:        up to date, audited 302 packages in 820ms
remote:
remote:        16 packages are looking for funding
remote:          run `npm fund` for details

脚本

"scripts": {
    "start": "node server/server.js",
    "develop": "concurrently \"cd server && npm run watch\" \"cd client && npm start\"",
    "install": "cd server && npm install && cd ../client && npm install",
    "seed": "cd server && npm run seed",
    "build": "cd client && npm run build"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "concurrently": "^5.1.0"
  }

服务器

"scripts": {
    "start": "node server.js",
    "watch": "nodemon server.js",
    "seed": "node config/seeds.js"
  },

客户

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

有人知道是什么原因造成的吗? 我运行过类似的应用程序,这是我第一次遇到此错误。

【问题讨论】:

  • 这是正常的、预期的行为。你没有表现出任何异常。该应用程序基于每个 git 提交构建。在节点应用程序中,该应用程序是使用 npm install 构建的。您已经显示了部分日志,那里没有任何异常。
  • @TinNguyen,我认为 OP 表明他们的构建命令在单个部署期间运行了多次:cd server && npm install && cd ../client && npm install 在这里出现了两次。
  • OP,请edit将您的server/package.jsonclient/package.json文件放入您的问题中(至少是他们的脚本)。
  • 通常,安装只运行一次。它运行了 100 多次?通常它运行一次然后运行构建过程

标签: node.js reactjs mongodb express heroku


【解决方案1】:

Pergunto:Como resolver isso, por favor Não consigo fazer o deploy no heroku,uso python versão 3.10.8 e aparecem esses erros abaixo:

1) 错误:忽略了以下需要不同 python 版本的版本:1.9.5 Requires-Python >=2.7, !=3.0。, !=3.1。, !=3.2。, !=3.3。, <3.7

2)错误:找不到满足pywin32==304要求的版本(来自版本:无)

3) 错误:找不到与 pywin32==304 匹配的分布

推送被拒绝,无法编译 Python 应用程序。 推送失败

【讨论】:

    猜你喜欢
    • 2014-02-01
    • 1970-01-01
    • 2021-07-21
    • 2015-07-13
    • 2011-08-22
    • 2011-05-23
    • 1970-01-01
    • 2021-03-19
    • 2011-10-13
    相关资源
    最近更新 更多