收藏
回答

使用官方云托管Koa模板,向main分支推送后部署失败,代码gitee,为啥啊?

第一次直接使用模板部署,显示服务创建并部署成功。

然后clone 官方的github仓库,啥都没改,在gitee新建立了仓库,并推送到gitee仓库,再继续修改云托管的服务设置,指向gitee流水线,提交并推送本地代码,显示流水线自动构建部署,然后就是失败了,为啥啊?express是这样,koa也是这样?

没看到错误信息,提交工单也没个下文?官方的解决一下啊

回答关注问题邀请回答
收藏

1 个回答

  • HawkLu
    HawkLu
    2022-07-20

    本地调试,docker start 后也报错

    wxcloudrun-koa@1.0.0 start /app
    > node index.js
    
    
    (node:16) UnhandledPromiseRejectionWarning: SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:3306
        at ConnectionManager.connect (/app/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:92:17)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
        at async ConnectionManager._connect (/app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:220:24)
        at async /app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:174:32
        at async ConnectionManager.getConnection (/app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:197:7)
        at async /app/node_modules/sequelize/lib/sequelize.js:301:26
        at async MySQLQueryInterface.tableExists (/app/node_modules/sequelize/lib/dialects/abstract/query-interface.js:102:17)
        at async Function.sync (/app/node_modules/sequelize/lib/model.js:939:21)
        at async init (/app/db.js:25:3)
        at async bootstrap (/app/index.js:62:3)
    (Use `node --trace-warnings ...` to show where the warning was created)
    (node:16) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
    (node:16) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    
    2022-07-20
    有用
    回复 1
    • coder_gong
      coder_gong
      06-02
      艾,我也是。用的 koa模板,就改了一下 html文字,想验证下 流水线部署。结果 在提交github触发流水线后,提示部署失败。
      06-02
      回复
登录 后发表内容