Git Product home page Git Product logo

tencentcloudbase / cloudbase-templates Goto Github PK

View Code? Open in Web Editor NEW
204.0 8.0 107.0 16.29 MB

云开发工程模板示例,可通过 CloudBaseFramework 一键创建和部署

Home Page: https://github.com/TencentCloudBase/cloudbase-framework

License: Apache License 2.0

JavaScript 48.43% PHP 0.11% Shell 0.05% HTML 8.17% CSS 3.58% TypeScript 24.15% Vue 8.34% Dart 2.06% Pug 1.15% Less 0.29% Makefile 0.05% Go 0.23% EJS 3.38%

cloudbase-templates's Introduction

CloudBase Templates

云开发应用模板仓库,可通过 CloudBase Framework 一键创建和部署。

你可以安装 CloudBase CLI 最新版本(1.0.3+)npm i -g @cloudbase/cli,并使用下面模板中的命令初始化应用。

CloudBase Framework 介绍

🚀 CloudBase Framework 是云开发开源的云原生前后端一体化部署工具,支持主流前后端框架,前后端一键托管部署在云端一体化平台,支持支持小程序、Web、Flutter、后端服务等多个平台。

Github 开源地址:https://github.com/TencentCloudBase/cloudbase-framework

欢迎给 CloudBase Framework 一个 🌟 star

应用模板示例

欢迎大家贡献应用模板:

https://docs.cloudbase.net/framework/guide/app.html

https://docs.cloudbase.net/framework/guide/container-app.html

Tip:你可以通过 -e 参数直接指定应用所使用的环境 Id,如 cloudbase new vue-app vue -e testEnvId

名称 应用示例介绍 基于模板创建项目
Vue 应用 Vue + 云函数 + 静态网站部署 cloudbase new vue-app vue
React 应用 React + 云函数 + 静态网站部署 cloudbase new react-app react-starter
React Custom CRA React + 云函数 + 静态网站部署 cloudbase new react-app react-custom
Nuxt SPA 应用 Nuxt SPA + 云函数 + 静态网站部署 cloudbase new nuxt-app nuxt-spa
Nuxt SSR 应用 Nuxt SSR + 服务端部署 + 静态网站部署 cloudbase new nuxt-app nuxt-ssr
Koa 应用 Koa + 服务端部署 cloudbase new koa-app koa-starter
Express 应用 Express + 服务端部署 cloudbase new express-app express-starter
Nest 应用 Nest + 服务端部署 cloudbase new nest-app nest-starter
Egg 应用 Egg + 服务端部署 cloudbase new egg-app egg-starter
Node.js 云函数示例 Node.js 云函数 cloudbase new node-app node-starter
PHP 云函数示例 PHP 云函数 cloudbase new php-app php-starter
Java 云函数示例 Java 云函数 cloudbase new java-app java-starter
VuePresss 网站应用 VuePresss + 静态网站部署 cloudbase new vuepress-app vuepress
Node.js 云托管应用 Node.js + 云托管部署 cloudbase new node-app node
Aqueduct (Dart Server) 云托管应用 Aqueduct (Dart Server) + 云托管部署 cloudbase new dart-app dart
Omi 应用 Omi + 云函数 + 静态网站部署 cloudbase new omi-app omi-starter
taro 应用 taro + 云函数 + 静态网站部署 cloudbase new taro-app taro-starter
deno 云托管应用 deno + 云托管部署 cloudbase new deno-app deno
Next SSR 应用 Next SSR + 服务端部署 + 静态网站部署 cloudbase new next-app next-ssr
Go 云函数 Go + 云函数 cloudbase new go-app go-starter
ThinkJS 应用 thinkjs + 云函数 cloudbase new thinkjs-app thinkjs-starter
DarukJS 应用 darukjs + 云函数 cloudbase new daruk-app daruk-starter

CloudBase Framework 核心贡献者计划

欢迎大家参与 CloudBase Framework 的开发工作,成为我们的贡献者,我们将会在云开发社区展示贡献者的作品和信息,同时也会有惊喜奖励。

您可以选择如下的贡献方式:

CloudBase Framework 的发展离不开社区的积极贡献,这是我们的核心贡献者列表,再次感谢大家的贡献:https://github.com/TencentCloudBase/cloudbase-framework#contributors-

cloudbase-templates's People

Contributors

ba3000 avatar binggg avatar chhpt avatar davont avatar dependabot[bot] avatar dongyuanxin avatar fanyegong avatar hu-qi avatar liulinboyi avatar lizheming avatar lt5c avatar manfwh avatar qinmudi avatar searchfan avatar seymoe avatar shryzhang avatar starkwang avatar tabspace avatar yiliang114 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloudbase-templates's Issues

hexo 模板无法成功部署

我克隆了该项目后,进入 hexo 目录执行 cloudbase framework deploy -e <my-env-id> 命名后无异常退出,但是提示:there is no normal environment。检查静态托管中已上传的文件,发现项目并没有成功部署。
请问要怎么排查问题?

Nest 模版 npm run setup 报错

报错信息如下:

npm run deploy                                                                      

> [email protected] deploy ~/Desktop/acceptance/api
> cloudbase framework deploy


 Tip: cloudbase 命令可以简写为 tcb 

CloudBase CLI 1.2.4
CloudBase Framework 1.5.9
   ______ __                   __ ____                             
  / ____// /____   __  __ ____/ // __ ) ____ _ _____ ___           
 / /    / // __ \ / / / // __  // __  |/ __ `// ___// _ \          
/ /___ / // /_/ // /_/ // /_/ // /_/ // /_/ /(__  )/  __/          
\_________\____/ \__,_/ \__,_//_____/ \__,_//____/ \___/       __  
   / ____/_____ ____ _ ____ ___   ___  _      __ ____   _____ / /__
  / /_   / ___// __ `// __ `__ \ / _ \| | /| / // __ \ / ___// //_/
 / __/  / /   / /_/ // / / / / //  __/| |/ |/ // /_/ // /   / ,<   
/_/    /_/    \__,_//_/ /_/ /_/ \___/ |__/|__/ \____//_/   /_/|_|  
                                                                   

 CloudBase Framework  info     Version v1.5.9
 CloudBase Framework  info     Github: https://github.com/Tencent/cloudbase-framework

 CloudBase Framework  info     EnvId dev-0g94ski64fb01a47
 CloudBase Framework  info     Validate config file success.
 CloudBase Framework  info     AppName nest-starter
 CloudBase Framework  info     📦 install plugins
 CloudBase Framework  info     callHooks 'preDeploy' 
+ @cloudbase/[email protected]
updated 1 package in 3.456s
 CloudBase Framework  info     🔧 init: node...
 CloudBase Framework  info     🔨 build: node...
 CloudBase Framework  error     ENOENT: no such file or directory, stat '~/Desktop/acceptance/api/node_modules/windows-release/node_modules/cross-spawn/node_modules/.bin/node-which'
 CloudBase Framework  info     部署日志: '~/cloudbase-framework/logs/Sat Jan 16 2021 11:00:46 GMT+0800 (GMT+08:00).log' 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy: `cloudbase framework deploy`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     ~/.npm/_logs/2021-01-16T03_01_05_796Z-debug.log

nest-cloudbase-template build failure 然后我将模板改造成构建成功版且新增了nest-webpack构建版🐸

Bug描述

  1. 使用官方收录的nestjs模板,构建失败
  2. 在window环境下使用tcb cli创建nestjs模板创建成功后,run dev/start失败

bug复现

  1. 创建cloudbase使用官方模板仓库的nest创建,待创建完成后创建失败。
  2. 使用tcb cli创建项目使用官方的init初始化后npm i => npm dev 报错

使用tcb cli创建项目错误展示

  • 第一个:npm i 后 npm run
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
  • 解决第一个后,第二个
node_modules/@types/superagent/index.d.ts:23:10 - error TS2305: Module '"buffer"' has no exported member 'Blob'.

23 import { Blob } from "buffer";
            ~~~~
[20:47:29] Found 1 error. Watching for file changes.

上面的所有错误我都解决,基本测试没问题

thinkjs多模块项目启动报错

thinkjs多模块项目模式启动报错

$ cloudbase new tcbstarter thinkjs-starter
$ tcb

多模块化以后:
"thinkjs": {
"metadata": {
"name": "thinkjs-starter",
"description": "application created by thinkjs",
"author": "lizheming [email protected]",
"babel": false,
"defaultModule": "home"
},
"projectName": "thinkjs-starter",
"clone": false,
"isMultiModule": true
}

具体异常如下:

错误码: INVOKE_FUNCTION_FAILED
错误信息: Error: EROFS: read-only file system, mkdir '/var/user/logs' at Object.mkdirSync (fs.js:752:3) at Object.mkdirsSync (/var/user/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:31:9) at DateRollingFileStream._renewWriteStream (/var/user/node_modules/streamroller/lib/RollingFileWriteStream.js:402:8) at new RollingFileWriteStream (/var/user/node_modules/streamroller/lib/RollingFileWriteStream.js:107:10) at new DateRollingFileStream (/var/user/node_modules/streamroller/lib/DateRollingFileStream.js:23:5) at appender (/var/user/node_modules/log4js/lib/appenders/dateFile.js:27:19) at Object.configure (/var/user/node_modules/log4js/lib/appenders/dateFile.js:57:10) at clustering.onlyOnMaster (/var/user/node_modules/log4js/lib/appenders/index.js:63:27) at Object.onlyOnMaster (/var/user/node_modules/log4js/lib/clustering.js:74:50) at createAppender (/var/user/node_modules/log4js/lib/appenders/index.js:61:21)

部署后显示Internal Server Error

日志没有报错,本地启动一切正常。不知道什么原因。tcb到服务器上就是不行。

部署后访问显示Internal Server Error

START RequestId:f3d58e58-a97c-11eb-8fcd-525400dd5846

f3d58e58-a97c-11eb-8fcd-525400dd5846 n  TypeError: this.socket.setTimeout is not a functionn     
 at ServerlessResponse.setTimeout (_http_outgoing.js:191:17)n      
 at /var/user/node_modules/think-meta/index.js:23:15n      
 at dispatch (/var/user/node_modules/koa-compose/index.js:42:32)n     
 at /var/user/node_modules/koa-compose/index.js:34:12n      
 at Application.handleRequest (/var/user/node_modules/koa/lib/application.js:168:12)n      
 at handleRequest (/var/user/node_modules/koa/lib/application.js:150:19)n      
 at request (/var/user/node_modules/serverless-http/lib/framework/get-framework.js:9:5)n      
 at provider (/var/user/node_modules/serverless-http/serverless-http.js:19:28)n

2021-04-30 14:26:10 f3d58e58-a97c-11eb-8fcd-525400dd5846 {"traceId":"8e2971a5755c494689a0a0397ac5c4c9","httpPath":"/thinkjs-starter","childOf":"","source":"http","invoker":"","ua":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46","invokerIp":"220.194.231.141","spanId":"a8578e186b70b0ad","service":"function","domain":"test-php-3gcxe2mobc10382b-1252709890.ap-shanghai.app.tcloudbase.com","startTime":"1619763969679","event":"GET","timeCost":"407","statusCode":"500"}

REPORT RequestId:f3d58e58-a97c-11eb-8fcd-525400dd5846 Duration:389ms Memory:128MB MemUsage:26.308594MB

END RequestId:f3d58e58-a97c-11eb-8fcd-525400dd5846

Vue模板建议提供默认envId参数

直接使用cloudbase new vue-app vue创建的Vue应用无法直接通过npm run dev在本地预览。执行指令后浏览器显示为空白,并且在控制台报如下错误:

image

这是因为在main.js中的第七行export const envId = window._tcbEnv.TCB_ENV_ID;在本地运行的时候为空,建议提供默认参数,如:

window._tcbEnv = window._tcbEnv || {TCB_ENV_ID:"hello-cloudbase-6g75912970589688"};

并且在附近注释提醒用户修改TCB_ENV_ID。

Deno 模板部署失败

tcb new deno_hello deno
cd deno_hello
tcb

gpdi@Mac-mini deno % tcb new deno_hello deno
CloudBase CLI 1.5.0
CloudBase Framework 1.6.18
FetchError: network timeout at: https://iaas.cloud.tencent.com/tcb_refresh
at Timeout. (/usr/local/lib/node_modules/@cloudbase/cli/node_modules/node-fetch/lib/index.js:1454:13)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
✖ network timeout at: https://iaas.cloud.tencent.com/tcb_refresh
gpdi@Mac-mini deno % tcb new deno_hello deno
CloudBase CLI 1.5.0
CloudBase Framework 1.6.18
✔ 请选择环境所在地域 · 上海
✔ 请选择关联环境 · deno-demo - [deno-demo-3ghgaf7pa8d97b90:按量计费]
✔ 创建应用 deno_hello 成功!

ℹ 👉 执行命令 cd deno_hello 进入文件夹
ℹ 👉 开发完成后,执行命令 tcb 一键部署
gpdi@Mac-mini deno % cd deno_hello
gpdi@Mac-mini deno_hello % code .
gpdi@Mac-mini deno_hello % tcb
CloudBase CLI 1.5.0
CloudBase Framework 1.6.18
✔ 是否使用云开发部署当前项目 </Volumes/PhiHardisk H1/learn/deno/deno_hello> ? (Y/n) · true


/ // / __ __ / // __ ) ____ _ _____ ___
/ / / // __ \ / / / // __ // __ |/ __ // ___// _ \ / /___ / // /_/ // /_/ // /_/ // /_/ // /_/ /(__ )/ __/ \_________\____/ \__,_/ \__,_//_____/ \__,_//____/ \___/ __ / ____/_____ ____ _ ____ ___ ___ _ __ ____ _____ / /__ / /_ / ___// __ // __ `
\ / _ | | /| / // __ \ / // ///
/ __/ / / / /
/ // / / / / // __/| |/ |/ // /
/ // / / ,<
/
/ /
/ _,/// // // _/ |/|/ _/// //|_|

CloudBase Framework info Version v1.6.18
CloudBase Framework info Github: https://github.com/Tencent/cloudbase-framework

CloudBase Framework info EnvId deno-demo-3ghgaf7pa8d97b90
CloudBase Framework info Validate config file success.
CloudBase Framework info AppName deno-app
CloudBase Framework info 📦 install plugins
CloudBase Framework info callHooks 'preDeploy'

26 packages are looking for funding
run npm fund for details

CloudBase Framework info 🔧 init: deno...
CloudBase Framework info 🔨 build: deno...
CloudBase Framework info 🧬 compile: deno...
CloudBase Framework info callHooks 'postCompile'
正在部署[░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 100% 155.0 s
CloudBase Framework error [DEPLOY_ERROR]
部署失败,错误信息:1699395_DescribeCloudBaseRunServer_[800003][800003]read --allow-run --allow-write --allow-net -f -q --unstable https://deno.land/x/denon/denon.ts
---> Running in 5b75c1cbc737
Warning Implicitly using latest version (2.4.7) for https://deno.land/x/denon/denon.ts
error: TS2339 [ERROR]: Property 'host' does not exist on type 'NetPermissionDescriptor'.
return pd.host
~~~~
at https://deno.land/[email protected]/permissions/mod.ts:17:25

TS2339 [ERROR]: Property 'host' does not exist on type 'NetPermissionDescriptor'.
? --allow-${pd.name}=${pd.host}
~~~~
at https://deno.land/[email protected]/permissions/mod.ts:18:44

Found 2 errors.
The command '/bin/sh -c deno install --allow-read --allow-run --allow-write --allow-net -f -q --unstable https://deno.land/x/denon/denon.ts' returned a non-zero code: 1
尝试 重新构建;查看 构建详情;检查Dockerfile 是否位于正确位置: ./Dockerfile;提交工单,并在 问题描述 中附上以下信息:环境id:deno-demo-3ghgaf7pa8d97b90;服务名称:deno-app;版本:deno-app-001;状态:构建失败;, 请求RequestId:6beef91e-5383-4a07-b0a5-7e89e2f62d90
CloudBase Framework info 部署日志: '/Users/gpdi/cloudbase-framework/logs/2021-02-09_16-42-16.log'

log;

Tue Feb 09 2021 16:42:40 GMT+0800 (China Standard Time) 23.8 CloudBase Framework::info Version �[32mv1.6.18�[39m
Tue Feb 09 2021 16:42:40 GMT+0800 (China Standard Time) 23.8 CloudBase Framework::info Github: �[1m�[36m�]8;;https://github.com/Tencent/cloudbase-framework�https://github.com/Tencent/cloudbase-framework�]8;;��[39m�[22m

Tue Feb 09 2021 16:42:40 GMT+0800 (China Standard Time) 23.8 CloudBase Framework::info EnvId �[32mdeno-demo-3ghgaf7pa8d97b90�[39m
Tue Feb 09 2021 16:42:40 GMT+0800 (China Standard Time) 23.9 CloudBase Framework::debug 本地构建,本地存在配置文件 {
  functionRoot: './functions',
  functions: [],
  version: '2.0',
  envId: 'deno-demo-3ghgaf7pa8d97b90',
  '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json',
  framework: {
    name: 'deno-app',
    plugins: {
      deno: {
        use: '@cloudbase/framework-plugin-deno',
        inputs: { dockerImage: 'debian:latest', runtime: '1.6.3' }
      }
    }
  },
  region: 'ap-shanghai'
} 
Tue Feb 09 2021 16:42:40 GMT+0800 (China Standard Time) 24.1 CloudBase Framework::debug 远程不存在同名项目,新建项目
Tue Feb 09 2021 16:42:40 GMT+0800 (China Standard Time) 24.1 CloudBase Framework::debug 项目配置信息 'rcConfig' {
  functionRoot: './functions',
  functions: [],
  version: '2.0',
  envId: 'deno-demo-3ghgaf7pa8d97b90',
  '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json',
  framework: {
    name: 'deno-app',
    plugins: {
      deno: {
        use: '@cloudbase/framework-plugin-deno',
        inputs: { dockerImage: 'debian:latest', runtime: '1.6.3' }
      }
    }
  },
  region: 'ap-shanghai'
} 'extraData' {} 'projectName' 'deno-app' 
Tue Feb 09 2021 16:42:40 GMT+0800 (China Standard Time) 24.1 CloudBase Framework::debug RC 配置文件变更 false {
  functionRoot: './functions',
  functions: [],
  version: '2.0',
  envId: 'deno-demo-3ghgaf7pa8d97b90',
  '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json',
  framework: {
    name: 'deno-app',
    plugins: {
      deno: {
        use: '@cloudbase/framework-plugin-deno',
        inputs: { dockerImage: 'debian:latest', runtime: '1.6.3' }
      }
    }
  },
  region: 'ap-shanghai'
} 
Tue Feb 09 2021 16:42:40 GMT+0800 (China Standard Time) 24.1 CloudBase Framework::debug Framework 配置文件变更 false {
  name: 'deno-app',
  plugins: {
    deno: {
      use: '@cloudbase/framework-plugin-deno',
      inputs: { dockerImage: 'debian:latest', runtime: '1.6.3' }
    }
  }
} 
Tue Feb 09 2021 16:42:40 GMT+0800 (China Standard Time) 24.1 CloudBase Framework::info Validate config file success.
Tue Feb 09 2021 16:42:40 GMT+0800 (China Standard Time) 24.1 CloudBase Framework::info AppName �[32mdeno-app�[39m
Tue Feb 09 2021 16:42:40 GMT+0800 (China Standard Time) 24.1 CloudBase Framework::debug appConfig {
  name: 'deno-app',
  plugins: {
    deno: {
      use: '@cloudbase/framework-plugin-deno',
      inputs: { dockerImage: 'debian:latest', runtime: '1.6.3' }
    }
  }
} 
Tue Feb 09 2021 16:42:41 GMT+0800 (China Standard Time) 24.4 CloudBase Framework::info 📦 install plugins
Tue Feb 09 2021 16:42:41 GMT+0800 (China Standard Time) 24.4 CloudBase Framework::debug initHooks {} 
Tue Feb 09 2021 16:42:41 GMT+0800 (China Standard Time) 24.4 CloudBase Framework::debug resolve plugin @cloudbase/[email protected]: use 0.00 s, mismatch:true, resolved version:1.6.18
Tue Feb 09 2021 16:42:41 GMT+0800 (China Standard Time) 24.4 CloudBase Framework::debug deploy '' '' 
Tue Feb 09 2021 16:42:41 GMT+0800 (China Standard Time) 24.4 CloudBase Framework::info callHooks 'preDeploy' 
Tue Feb 09 2021 16:42:46 GMT+0800 (China Standard Time) 29.7 CloudBase Framework::info 🔧 init: deno...
Tue Feb 09 2021 16:42:46 GMT+0800 (China Standard Time) 29.7 CloudBase Framework::debug DenoPlugin: init {
  dockerImage: 'debian:latest',
  runtime: '1.6.3',
  denonVersion: '',
  entry: '',
  autoBuild: true,
  serviceName: 'deno-app',
  servicePath: '/deno-app',
  projectPath: '.'
} 
Tue Feb 09 2021 16:42:46 GMT+0800 (China Standard Time) 29.7 CloudBase Framework::info 🔨 build: deno...
Tue Feb 09 2021 16:42:46 GMT+0800 (China Standard Time) 29.7 CloudBase Framework::debug DenoPlugin: build {
  dockerImage: 'debian:latest',
  runtime: '1.6.3',
  denonVersion: '',
  entry: '',
  autoBuild: true,
  serviceName: 'deno-app',
  servicePath: '/deno-app',
  projectPath: '.'
} 
Tue Feb 09 2021 16:42:56 GMT+0800 (China Standard Time) 40.1 CloudBase Framework::debug ContainerPlugin: init {
  dockerImage: 'debian:latest',
  runtime: '1.6.3',
  denonVersion: '',
  entry: '',
  autoBuild: true,
  serviceName: 'deno-app',
  servicePath: '/deno-app',
  projectPath: '.',
  localAbsolutePath: '/Users/gpdi/cloudbase-framework/builds/cloudbase-deno-build-1612860166334/deno-app'
} 
Tue Feb 09 2021 16:42:57 GMT+0800 (China Standard Time) 40.5 CloudBase Framework::debug Container Plugin Inputs 'cloud' {} 'mode' {} 
Tue Feb 09 2021 16:42:57 GMT+0800 (China Standard Time) 40.5 CloudBase Framework::debug ContainerPlugin: build {
  uploadType: 'package',
  description: '基于云开发 CloudBase Framework 部署的云托管',
  isPublic: true,
  flowRatio: 100,
  cpu: 0.25,
  mem: 0.5,
  minNum: 0,
  maxNum: 10,
  policyType: 'cpu',
  policyThreshold: 60,
  containerPort: 80,
  dockerfilePath: './Dockerfile',
  buildDir: './',
  version: '1.0.0',
  localPath: './',
  envVariables: {},
  dockerImage: 'debian:latest',
  runtime: '1.6.3',
  denonVersion: '',
  entry: '',
  autoBuild: true,
  serviceName: 'deno-app',
  servicePath: '/deno-app',
  projectPath: '.',
  localAbsolutePath: '/Users/gpdi/cloudbase-framework/builds/cloudbase-deno-build-1612860166334/deno-app'
} 
Tue Feb 09 2021 16:42:57 GMT+0800 (China Standard Time) 40.9 CloudBase Framework::debug describeCloudBaseBuildService {
  DownloadHeaders: [],
  DownloadUrl: '',
  PackageName: 'deno-app.zip',
  PackageVersion: '1612860177',
  RequestId: '802b362d-31fb-4ecc-b08d-f147558007d3',
  UploadHeaders: [],
  UploadUrl: 'https://cloudaccess-run-1258016615.cos.ap-shanghai.myqcloud.com/home%2F922d0822225540ed9db967c5ef2bb198%2Fdeno-demo-3ghgaf7pa8d97b90-deno-app_1612860177_FnssTwx2.zip?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDYqreAvj0McQ8bplDBtRUJcfwwlL299NL%26q-sign-time%3D1612860177%3B1613464977%26q-key-time%3D1612860177%3B1613464977%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D8cb9117d3c8dba2d20885f3e69bc35b7c4ed054d'
} 'deno-app' '/Users/gpdi/cloudbase-framework/builds/cloudbase-container-build-1612860176735/deno-app.zip' 
Tue Feb 09 2021 16:42:58 GMT+0800 (China Standard Time) 41.8 CloudBase Framework::info 🧬 compile: deno...
Tue Feb 09 2021 16:42:58 GMT+0800 (China Standard Time) 41.8 CloudBase Framework::debug DenoPlugin: compile {
  dockerImage: 'debian:latest',
  runtime: '1.6.3',
  denonVersion: '',
  entry: '',
  autoBuild: true,
  serviceName: 'deno-app',
  servicePath: '/deno-app',
  projectPath: '.'
} 
Tue Feb 09 2021 16:42:58 GMT+0800 (China Standard Time) 41.8 CloudBase Framework::debug ContainerPlugin: compile {
  uploadType: 'package',
  description: '基于云开发 CloudBase Framework 部署的云托管',
  isPublic: true,
  flowRatio: 100,
  cpu: 0.25,
  mem: 0.5,
  minNum: 0,
  maxNum: 10,
  policyType: 'cpu',
  policyThreshold: 60,
  containerPort: 80,
  dockerfilePath: './Dockerfile',
  buildDir: './',
  version: '1.0.0',
  localPath: './',
  envVariables: {},
  dockerImage: 'debian:latest',
  runtime: '1.6.3',
  denonVersion: '',
  entry: '',
  autoBuild: true,
  serviceName: 'deno-app',
  servicePath: '/deno-app',
  projectPath: '.',
  localAbsolutePath: '/Users/gpdi/cloudbase-framework/builds/cloudbase-deno-build-1612860166334/deno-app'
} 
Tue Feb 09 2021 16:42:58 GMT+0800 (China Standard Time) 41.8 CloudBase Framework::info callHooks 'postCompile' 
Tue Feb 09 2021 16:42:58 GMT+0800 (China Standard Time) 41.8 CloudBase Framework::debug hooks.genSAM {} 
Tue Feb 09 2021 16:42:58 GMT+0800 (China Standard Time) 41.9 CloudBase Framework::debug sam:install {
  TCBSAMFormatVersion: '2020-06-15',
  License: 'MIT',
  Description: '基于 CloudBase Framework 构建',
  Category: 'CloudApp',
  Tags: [],
  SourceUrl: 'https://github.com/Tencent/cloudbase-framework',
  ReleaseNotesUrl: 'https://github.com/Tencent/cloudbase-framework/releases',
  IconUrl: 'https://main.qcloudimg.com/raw/f87b49914efe502722f9aa128f5d8865/hello_world.svg',
  IntroUrl: 'https://cloud.tencent.com/document/product/876/44547',
  ChangeLog: [ { Title: '1.0.0', Content: [ '初次发布' ] } ],
  Author: {
    AuthorName: 'Tencent CloudBase',
    Email: '[email protected]',
    Url: 'https://github.com/Tencent/cloudbase-framework'
  },
  Contributors: [
    {
      AuthorName: 'Tencent CloudBase',
      Email: '[email protected]',
      Url: 'https://github.com/Tencent/cloudbase-framework'
    }
  ],
  Name: 'deno-app',
  Version: '1.0.0',
  DisplayName: 'deno-app',
  Globals: { Environment: { Variables: {} } },
  Resources: {
    DenoApp: {
      Type: 'CloudBase::CloudBaseRun',
      Properties: {
        ServerName: 'deno-app',
        Description: '基于云开发 CloudBase Framework 部署的云托管',
        isPublic: true,
        UploadType: 'package',
        FlowRatio: 100,
        Cpu: 0.25,
        Mem: 0.5,
        MinNum: 0,
        MaxNum: 10,
        PolicyType: 'cpu',
        PolicyThreshold: 60,
        ContainerPort: 80,
        DockerfilePath: './Dockerfile',
        BuildDir: './',
        HttpPath: '/deno-app',
        EnvParams: '{}',
        PackageName: 'deno-app.zip',
        PackageVersion: '1612860177'
      }
    }
  },
  EntryPoint: [
    {
      Label: '服务入口',
      EntryType: 'HttpService',
      HttpEntryPath: '/deno-app'
    }
  ]
} 
Tue Feb 09 2021 16:43:05 GMT+0800 (China Standard Time) 48.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:43:10 GMT+0800 (China Standard Time) 54.0 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:43:15 GMT+0800 (China Standard Time) 58.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:43:20 GMT+0800 (China Standard Time) 63.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:43:25 GMT+0800 (China Standard Time) 68.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:43:30 GMT+0800 (China Standard Time) 74.0 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:43:35 GMT+0800 (China Standard Time) 78.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:43:40 GMT+0800 (China Standard Time) 83.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:43:45 GMT+0800 (China Standard Time) 89.0 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:43:50 GMT+0800 (China Standard Time) 94.0 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:43:55 GMT+0800 (China Standard Time) 98.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:00 GMT+0800 (China Standard Time) 103.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:05 GMT+0800 (China Standard Time) 108.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:10 GMT+0800 (China Standard Time) 113.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:15 GMT+0800 (China Standard Time) 118.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:20 GMT+0800 (China Standard Time) 123.9 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:25 GMT+0800 (China Standard Time) 128.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:30 GMT+0800 (China Standard Time) 133.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:35 GMT+0800 (China Standard Time) 138.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:40 GMT+0800 (China Standard Time) 144.1 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:45 GMT+0800 (China Standard Time) 148.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:50 GMT+0800 (China Standard Time) 153.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:44:55 GMT+0800 (China Standard Time) 158.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:45:00 GMT+0800 (China Standard Time) 163.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:45:05 GMT+0800 (China Standard Time) 168.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:45:13 GMT+0800 (China Standard Time) 177.0 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:45:15 GMT+0800 (China Standard Time) 178.9 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:45:20 GMT+0800 (China Standard Time) 183.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:45:25 GMT+0800 (China Standard Time) 188.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:45:30 GMT+0800 (China Standard Time) 193.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:45:35 GMT+0800 (China Standard Time) 198.9 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installing',
  Detail: '',
  Percent: 75
} 
Tue Feb 09 2021 16:45:40 GMT+0800 (China Standard Time) 203.8 CloudBase Framework::debug ext taskInfo {
  ExtensionId: 'deno-app-x1XZcsYc',
  Status: 'installError',
  Detail: '1699395_DescribeCloudBaseRunServer_[800003][800003]read --allow-run --allow-write --allow-net -f -q --unstable https://deno.land/x/denon/denon.ts\n' +
    ' ---> Running in 5b75c1cbc737\n' +
    '\x1B[91m\x1B[0m\x1B[33mWarning\x1B[0m Implicitly using latest version (2.4.7) for https://deno.land/x/denon/denon.ts\n' +
    "\x1B[0m\x1B[91m\x1B[0m\x1B[1m\x1B[31merror\x1B[0m: \x1B[0m\x1B[1mTS2339\x1B[0m [ERROR]: Property 'host' does not exist on type 'NetPermissionDescriptor'.\n" +
    '              return pd.host\n' +
    '\x1B[0m\x1B[31m                        ~~~~\x1B[0m\n' +
    '    at \x1B[0m\x1B[36mhttps://deno.land/[email protected]/permissions/mod.ts\x1B[0m:\x1B[0m\x1B[33m17\x1B[0m:\x1B[0m\x1B[33m25\x1B[0m\n' +
    '\n' +
    "\x1B[0m\x1B[1mTS2339\x1B[0m [ERROR]: Property 'host' does not exist on type 'NetPermissionDescriptor'.\n" +
    '                ? `--allow-${pd.name}=${pd.host}`\n' +
    '\x1B[0m\x1B[31m                                           ~~~~\x1B[0m\n' +
    '    at \x1B[0m\x1B[36mhttps://deno.land/[email protected]/permissions/mod.ts\x1B[0m:\x1B[0m\x1B[33m18\x1B[0m:\x1B[0m\x1B[33m44\x1B[0m\n' +
    '\n' +
    'Found 2 errors.\n' +
    "\x1B[0mThe command '/bin/sh -c deno install --allow-read --allow-run --allow-write --allow-net -f -q --unstable https://deno.land/x/denon/denon.ts' returned a non-zero code: 1\n" +
    '尝试 重新构建;查看 构建详情;检查Dockerfile 是否位于正确位置: ./Dockerfile;提交工单,并在 问题描述 中附上以下信息:环境id:deno-demo-3ghgaf7pa8d97b90;服务名称:deno-app;版本:deno-app-001;状态:构建失败;',
  Percent: 100
} 

nuxt-ssr 自定义域名怎么正确的绑定到根目录

问题:为了绑定到自定义域名的根目录,现将HTTP访问服务加了两个访问路径(/, /nuxt-ssr),能否通过正确配置nuxt.config.js文件后,只保留一个 /
尝试修改修改配置 nuxt.config.js 文件属性router.basebuild.publicPath,要么访问不到页面,要么页面中静态js资源文件无法访问

请问怎么配置能只保留一个HTTP访问触发器?还是必须有两条

express项目,express-session用不了,切换路由session消失

注:本地使用没问题的,觉得要不你们限制了不能使用session,要不还是云开发路径问题

入口文件app.js引入‘express-session’,并设置模块

const session = require('express-session');
// 使用 session 中间件
app.use(session({
  secret : 'secrett', // 对session id 相关的cookie 进行签名
  resave : false,
  saveUninitialized: false, // 是否保存未初始化的会话
  cookie : {
    maxAge : 1000 * 60 * 60, // 设置 session 的有效时间,单位毫秒
  },
}));

路由文件index.js,在路由login设置session值,之后在路由access_token获取session值,显示为空

// login get路由
router.get("/login", function (req, res, next) {
  req.session.access_token = '123' // 设置session
});
// access_token get路由
router.get("/access_token", function (req, res, next) {
  console.log(req.session.access_token) // 没有值
});

【CloudBase】nest-starter快速构建失败

[2022-08-26 11:48:03] Started by user coding
[2022-08-26 11:48:03] Running in Durability level: MAX_SURVIVABILITY
[2022-08-26 11:48:04] [Pipeline] Start of Pipeline
[2022-08-26 11:48:05] [Pipeline] getContext
[2022-08-26 11:48:05] [Pipeline] node
[2022-08-26 11:48:05] Running on Jenkins in /root/workspace
[2022-08-26 11:48:05] [Pipeline] {
[2022-08-26 11:48:07] [Pipeline] isUnix
[2022-08-26 11:48:07] [Pipeline] sh
[2022-08-26 11:48:07] + docker inspect -f . ccr.ccs.tencentyun.com/cloudbaseframework/cloudbase-framework-runner:1.8.15
[2022-08-26 11:48:07] .
[2022-08-26 11:48:07] [Pipeline] withDockerContainer
[2022-08-26 11:48:07] Jenkins does not seem to be running inside a container
[2022-08-26 11:48:07] $ docker run -t -d -u 0:0 -v /root/.cloudbase-pnpm-cache:/root/.pnpm-store -v /root/.cloudbase-yarn-cache:/usr/local/share/.cache/yarn/v6 -v /root/.cloudbase-npm-cache:/root/.npm -v /root/.weapps-build/app:/root/.weapps-build/app -v /root/.weapps-materials/[email protected]:/root/.weapps-materials/[email protected] -v /root/.weapps-materials/CLOUDBASE_BUSSINESS@1627377179261:/root/.weapps-materials/CLOUDBASE_BUSSINESS@1627377179261 -v /root/cloudbase-framework/registry/node_modules/@cloudbase/framework-plugin-low-code:/root/.tmp/framework-plugin-low-code -w /root/workspace -v /root/workspace:/root/workspace:rw,z -v /root/workspace@tmp:/root/workspace@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ccr.ccs.tencentyun.com/cloudbaseframework/cloudbase-framework-runner:1.8.15 cat
[2022-08-26 11:48:08] $ docker top 46f378c9cdc2206ccf79a58e9b314862ff1da29eb257bfff860428ab0a85dd3c -eo pid,comm
[2022-08-26 11:48:08] [Pipeline] {
[2022-08-26 11:48:08] [Pipeline] stage
[2022-08-26 11:48:08] [Pipeline] { (检出 ZIP 包)
[2022-08-26 11:48:08] Stage "检出 ZIP 包" skipped due to when conditional
[2022-08-26 11:48:09] [Pipeline] }
[2022-08-26 11:48:09] [Pipeline] // stage
[2022-08-26 11:48:09] [Pipeline] stage
[2022-08-26 11:48:09] [Pipeline] { (检出代码仓库)
[2022-08-26 11:48:09] [Pipeline] sh
[2022-08-26 11:48:09] + cd /root
[2022-08-26 11:48:09] + git clone --depth 1 --branch master ****** cloudbase-workspace
[2022-08-26 11:48:09] Cloning into 'cloudbase-workspace'...
[2022-08-26 11:48:11] + rm -rf cloudbase-workspace/.git
[2022-08-26 11:48:11] [Pipeline] }
[2022-08-26 11:48:11] [Pipeline] // stage
[2022-08-26 11:48:11] [Pipeline] stage
[2022-08-26 11:48:11] [Pipeline] { (提交代码)
[2022-08-26 11:48:11] [Pipeline] script
[2022-08-26 11:48:11] [Pipeline] {
[2022-08-26 11:48:11] [Pipeline] }
[2022-08-26 11:48:12] [Pipeline] // script
[2022-08-26 11:48:12] [Pipeline] }
[2022-08-26 11:48:12] [Pipeline] // stage
[2022-08-26 11:48:12] [Pipeline] stage
[2022-08-26 11:48:12] [Pipeline] { (登录)
[2022-08-26 11:48:12] [Pipeline] sh
[2022-08-26 11:48:12] + tcb login --apiKeyId ****** --apiKey '******' --token ******
[2022-08-26 11:48:12] CloudBase CLI 1.9.2
[2022-08-26 11:48:12] CloudBase Framework 1.8.15
[2022-08-26 11:48:14] - 数据加载中...
[2022-08-26 11:48:14] - 检验登录状态
[2022-08-26 11:48:14] - 正在验证腾讯云密钥...
[2022-08-26 11:48:14] ✔ 登录成功!
[2022-08-26 11:48:14] 可使用下面命令继续操作:
[2022-08-26 11:48:14]
[2022-08-26 11:48:14] – 创建免费环境
[2022-08-26 11:48:14]
[2022-08-26 11:48:14] $ tcb env create envName
[2022-08-26 11:48:14]
[2022-08-26 11:48:14] – 初始化云开发项目
[2022-08-26 11:48:14]
[2022-08-26 11:48:14] $ tcb new
[2022-08-26 11:48:14]
[2022-08-26 11:48:14] – 部署云函数
[2022-08-26 11:48:14]
[2022-08-26 11:48:14] $ tcb fn deploy
[2022-08-26 11:48:14]
[2022-08-26 11:48:14] – 查看命令使用介绍
[2022-08-26 11:48:14]
[2022-08-26 11:48:14] $ tcb -h
[2022-08-26 11:48:14]
[2022-08-26 11:48:14] Tips:可以使用简写命令 tcb 代替 cloudbase
[2022-08-26 11:48:14] + rm -rf /root/cloudbase-framework/registry/node_modules/@cloudbase/framework-plugin-low-code
[2022-08-26 11:48:15] + cp -r /root/.tmp/framework-plugin-low-code /root/cloudbase-framework/registry/node_modules/@cloudbase/framework-plugin-low-code
[2022-08-26 11:48:19] [Pipeline] }
[2022-08-26 11:48:19] [Pipeline] // stage
[2022-08-26 11:48:19] [Pipeline] stage
[2022-08-26 11:48:19] [Pipeline] { (构建)
[2022-08-26 11:48:19] [Pipeline] sh
[2022-08-26 11:48:19] + cd /root/cloudbase-workspace/nest-starter
[2022-08-26 11:48:19] + pwd
[2022-08-26 11:48:19] /root/cloudbase-workspace/nest-starter
[2022-08-26 11:48:19] + ls -al
[2022-08-26 11:48:19] total 56
[2022-08-26 11:48:19] drwxr-xr-x 4 root root 4096 Aug 26 03:48 .
[2022-08-26 11:48:19] drwxr-xr-x 36 root root 4096 Aug 26 03:48 ..
[2022-08-26 11:48:19] -rw-r--r-- 1 root root 599 Aug 26 03:48 .eslintrc.js
[2022-08-26 11:48:19] -rw-r--r-- 1 root root 376 Aug 26 03:48 .gitignore
[2022-08-26 11:48:19] -rw-r--r-- 1 root root 51 Aug 26 03:48 .prettierrc
[2022-08-26 11:48:19] -rw-r--r-- 1 root root 1189 Aug 26 03:48 README.md
[2022-08-26 11:48:19] -rw-r--r-- 1 root root 93 Aug 26 03:48 app.js
[2022-08-26 11:48:19] -rw-r--r-- 1 root root 660 Aug 26 03:48 cloudbaserc.json
[2022-08-26 11:48:19] -rw-r--r-- 1 root root 116 Aug 26 03:48 nest-cli.json
[2022-08-26 11:48:19] -rw-r--r-- 1 root root 1959 Aug 26 03:48 package.json
[2022-08-26 11:48:19] drwxr-xr-x 2 root root 4096 Aug 26 03:48 src
[2022-08-26 11:48:19] drwxr-xr-x 2 root root 4096 Aug 26 03:48 test
[2022-08-26 11:48:19] -rw-r--r-- 1 root root 97 Aug 26 03:48 tsconfig.build.json
[2022-08-26 11:48:19] -rw-r--r-- 1 root root 394 Aug 26 03:48 tsconfig.json
[2022-08-26 11:48:19] + CI=true tcb framework deploy -e cs-demo-6g3s3i7p8ef93ae6 --verbose
[2022-08-26 11:48:20] CloudBase CLI 1.9.2
[2022-08-26 11:48:20] CloudBase Framework 1.8.15
[2022-08-26 11:48:21] - 数据加载中...
[2022-08-26 11:48:21] �[1m ______ __ __ ____ �[22m
[2022-08-26 11:48:21] �[1m / // / __ __ ____/ // __ ) ____ _ _____ ___ �[22m
[2022-08-26 11:48:21] �[1m / / / // __ \ / / / // __ // __ |/ __ // ___// _ \ �[22m [2022-08-26 11:48:21] �[1m/ /___ / // /_/ // /_/ // /_/ // /_/ // /_/ /(__ )/ __/ �[22m [2022-08-26 11:48:21] �[1m\____//_/_\____/ \__,_/ \__,_//_____/ \__,_//____/ \___/ __ �[22m [2022-08-26 11:48:21] �[1m / ____/_____ ____ _ ____ ___ ___ _ __ ____ _____ / /__�[22m [2022-08-26 11:48:21] �[1m / /_ / ___// __ // __ __ \ / _ \| | /| / // __ \ / ___// //_/�[22m [2022-08-26 11:48:21] �[1m / __/ / / / /_/ // / / / / // __/| |/ |/ // /_/ // / / ,< �[22m [2022-08-26 11:48:21] �[1m/_/ /_/ \__,_//_/ /_/ /_/ \___/ |__/|__/ \____//_/ /_/|_| �[22m [2022-08-26 11:48:21] �[1m �[22m [2022-08-26 11:48:21] �[1m�[22m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Version �[32mv1.8.15�[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Github: �[1m�[4m�[36mhttps://github.com/Tencent/cloudbase-framework�[39m�[24m�[22m [2022-08-26 11:48:21] [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info EnvId �[32mcs-demo-6g3s3i7p8ef93ae6�[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Region �[32map-shanghai�[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug 云端构建场景 [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug process.env { [2022-08-26 11:48:21] CI_BUILD_ID: '24271488', [2022-08-26 11:48:21] CLOUDBASE_CIID: 'b83cc7d2-6264-484d-aabe-85f338246df3', [2022-08-26 11:48:21] GIT_REPO_URL: '', [2022-08-26 11:48:21] CLOUDBASE_TCB_CLOUDAPI_REGION: 'ap-guangzhou', [2022-08-26 11:48:21] JOB_ID: '1454414', [2022-08-26 11:48:21] PROJECT_TOKEN_GK: '******', [2022-08-26 11:48:21] GIT_PREVIOUS_SUCCESSFUL_COMMIT: '', [2022-08-26 11:48:21] PROJ_DIR: 'nest-starter', [2022-08-26 11:48:21] CI: 'true', [2022-08-26 11:48:21] NODE_VERSION: '14.17.6', [2022-08-26 11:48:21] HOSTNAME: '46f378c9cdc2', [2022-08-26 11:48:21] TCB_CODE_REPO: '{"Type":"github","Url":"******","Name":"nest-starter","WorkDir":"nest-starter","RawCode":"","Headers":null,"Branch":"","ProjectId":0}', [2022-08-26 11:48:21] RUN_CHANGES_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect?page=changes', [2022-08-26 11:48:21] CI_BUILD_NUMBER: '5', [2022-08-26 11:48:21] YARN_VERSION: '1.22.5', [2022-08-26 11:48:21] GIT_COMMIT: '', [2022-08-26 11:48:21] NODE_LABELS: 'master', [2022-08-26 11:48:21] SHLVL: '2', [2022-08-26 11:48:21] HOME: '/root', [2022-08-26 11:48:21] GIT_SSH_URL: '', [2022-08-26 11:48:21] DOCKER_REGISTRY_CREDENTIALS_ID: '51daaece-2a17-46f6-a6e0-fe8e3bb8472f', [2022-08-26 11:48:21] DOCKER_USERNAME: '******', [2022-08-26 11:48:21] BUILD_TYPE: 'CODE_REPO', [2022-08-26 11:48:21] CODE_URL_WITH_AUTH: '******', [2022-08-26 11:48:21] TCB_COMMIT_ID: '', [2022-08-26 11:48:21] PROJECT_API_URL: 'https://cloudbase-******.coding.net/api/user/cloudbase-******/project/', [2022-08-26 11:48:21] JENKINS_SERVER_COOKIE: 'durable-eaea33d8b70cee58f706e622dc5f25c1', [2022-08-26 11:48:21] CCI_CURRENT_TEAM: 'cloudbase-******', [2022-08-26 11:48:21] REPO_URL: '', [2022-08-26 11:48:21] GIT_HTTP_URL: '', [2022-08-26 11:48:21] REF: '', [2022-08-26 11:48:21] WORKSPACE: '/root/workspace', [2022-08-26 11:48:21] TCB_ADDON_CONFIG: '[]', [2022-08-26 11:48:21] CI_ENV_FILE: '/tmp/dynamic.env', [2022-08-26 11:48:21] TCB_ENVIRONMENT: '{"TCB_COMMIT_ID":""}', [2022-08-26 11:48:21] TCB_NETWORK_CONFIG: '{"uniqVpcId":"","cloudBaseRun":true}', [2022-08-26 11:48:21] PROJECT_WEB_URL: 'https://cloudbase-******.coding.net/p/framework-ci-cs-demo-6g3s3i7p8ef93ae6', [2022-08-26 11:48:21] ENV_ID: 'cs-demo-6g3s3i7p8ef93ae6', [2022-08-26 11:48:21] FETCH_REF_SPECS: '+refs/heads/*:refs/remotes/origin/* +refs/merge/*:refs/remotes/origin/merge/*', [2022-08-26 11:48:21] NODE_NAME: 'master', [2022-08-26 11:48:21] API_SECRET_ID: '******', [2022-08-26 11:48:21] PROJECT_NAME: 'framework-ci-cs-demo-6g3s3i7p8ef93ae6', [2022-08-26 11:48:21] RUN_ARTIFACTS_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect?page=artifacts', [2022-08-26 11:48:21] CREDENTIALS_ID: '', [2022-08-26 11:48:21] EXECUTOR_NUMBER: '30', [2022-08-26 11:48:21] STAGE_NAME: '构建', [2022-08-26 11:48:21] CLOUDBASE_TCB_EXTENTION_CLOUDAPI_REGION: 'ap-guangzhou', [2022-08-26 11:48:21] RUN_TESTS_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect?page=tests', [2022-08-26 11:48:21] BUILD_DISPLAY_NAME: '#1', [2022-08-26 11:48:21] HUDSON_HOME: '/var/lib/jenkins', [2022-08-26 11:48:21] JOB_BASE_NAME: 'cci-23561720-666368', [2022-08-26 11:48:21] PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', [2022-08-26 11:48:21] DOCKER_IMAGE_NAME: 'ccr.ccs.tencentyun.com/:nest-starter-1661485675046346185', [2022-08-26 11:48:21] API_TOKEN: '******', [2022-08-26 11:48:21] BUILD_ID: '1', [2022-08-26 11:48:21] DOCKER_BUILD_CONTEXT: '.', [2022-08-26 11:48:21] TRIGGER_USER_NAME: '管理员', [2022-08-26 11:48:21] BUILD_TAG: 'jenkins-cci-23561720-666368-1', [2022-08-26 11:48:21] PROJECT_ID: '10821173', [2022-08-26 11:48:21] GIT_URL: '', [2022-08-26 11:48:21] BUILD_NUMBER: '1', [2022-08-26 11:48:21] JENKINS_NODE_COOKIE: 'd915f6d7-838d-4dd5-bae9-26178575e3a2', [2022-08-26 11:48:21] DOCKER_PASSWORD: '******', [2022-08-26 11:48:21] CCI_JOB_NAME: 'cs-demo-6g3s3i7p8ef93ae6nest-starternest-starter', [2022-08-26 11:48:21] CODING_ARTIFACTS_CREDENTIALS_ID: '51daaece-2a17-46f6-a6e0-fe8e3bb8472f', [2022-08-26 11:48:21] DOCKERFILE_PATH: 'Dockerfile', [2022-08-26 11:48:21] RUN_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/1/display/redirect', [2022-08-26 11:48:21] HUDSON_SERVER_COOKIE: 'ff55c75c430e66f1', [2022-08-26 11:48:21] API_SECRET_KEY: '******', [2022-08-26 11:48:21] TCB_RC_JSON: '{"version":"2.0","envId":"{{envId}}","$schema":"https://framework-1258016615.tcloudbaseapp.com/schema/latest.json","framework":{"name":"nest-starter","plugins":{"node":{"use":"@cloudbase/framework-plugin-node","inputs":{"name":"nest-starter","path":"/nest-starter","entry":"app.js","buildCommand":"npm install --prefer-offline --no-audit --progress=false && npm run build","functionOptions":{"timeout":5,"envVariables":{"NODE_ENV":"production"}}}}}}}', [2022-08-26 11:48:21] TRIGGER_USER_ID: '8051023', [2022-08-26 11:48:21] JOB_DISPLAY_URL: 'http://unconfigured-jenkins-location/job/cci-23561720-666368/display/redirect', [2022-08-26 11:48:21] ANDROID_SDK_ROOT: '/root/programs/android-sdk', [2022-08-26 11:48:21] CLASSPATH: '', [2022-08-26 11:48:21] CCI_TRIGGER_METHOD: 'MANUAL', [2022-08-26 11:48:21] JOB_NAME: 'cci-23561720-666368', [2022-08-26 11:48:21] CLOUDBASE_TRACEID: 'b83cc7d2-6264-484d-aabe-85f338246df3', [2022-08-26 11:48:21] CODE_REF: 'master', [2022-08-26 11:48:21] PROJECT_TOKEN: '******', [2022-08-26 11:48:21] PWD: '/root/cloudbase-workspace/nest-starter', [2022-08-26 11:48:21] CCI_CURRENT_WEB_PROTOCOL: 'https', [2022-08-26 11:48:21] TRIGGER_USER_GK: 'WRvbosEieg', [2022-08-26 11:48:21] CI_STORAGE_BUCKET_NAME: '******', [2022-08-26 11:48:21] GIT_PREVIOUS_COMMIT: '', [2022-08-26 11:48:21] CCI_CURRENT_PROJECT_COMMON_CREDENTIALS_ID: '51daaece-2a17-46f6-a6e0-fe8e3bb8472f', [2022-08-26 11:48:21] GIT_BUILD_REF: '', [2022-08-26 11:48:21] CCI_TASK_NAME: 'cci-23561720-666368', [2022-08-26 11:48:21] BEHAVIOR_TYPE: 'TCB_FRAMEWORK', [2022-08-26 11:48:21] CCI_CURRENT_DOMAIN: 'coding.net', [2022-08-26 11:48:21] WEBPACK_DEV_SERVER: 'true' [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug 项目配置信息 'rcConfig' { [2022-08-26 11:48:21] functionRoot: './functions', [2022-08-26 11:48:21] functions: [], [2022-08-26 11:48:21] version: '2.0', [2022-08-26 11:48:21] envId: '', [2022-08-26 11:48:21] '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json', [2022-08-26 11:48:21] framework: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } 'extraData' { [2022-08-26 11:48:21] repo: { [2022-08-26 11:48:21] Type: 'github', [2022-08-26 11:48:21] Url: '******', [2022-08-26 11:48:21] Name: 'nest-starter', [2022-08-26 11:48:21] WorkDir: 'nest-starter', [2022-08-26 11:48:21] RawCode: '', [2022-08-26 11:48:21] Headers: null, [2022-08-26 11:48:21] Branch: '', [2022-08-26 11:48:21] ProjectId: 0 [2022-08-26 11:48:21] }, [2022-08-26 11:48:21] tags: undefined, [2022-08-26 11:48:21] environment: { TCB_COMMIT_ID: '' }, [2022-08-26 11:48:21] network: { uniqVpcId: '', cloudBaseRun: true }, [2022-08-26 11:48:21] addons: [] [2022-08-26 11:48:21] } 'projectName' 'nest-starter' [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug RC 配置文件变更 false { [2022-08-26 11:48:21] functionRoot: './functions', [2022-08-26 11:48:21] functions: [], [2022-08-26 11:48:21] version: '2.0', [2022-08-26 11:48:21] envId: '', [2022-08-26 11:48:21] '$schema': 'https://framework-1258016615.tcloudbaseapp.com/schema/latest.json', [2022-08-26 11:48:21] framework: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug Framework 配置文件变更 false { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info Validate config file success. [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info AppName �[32mnest-starter�[39m [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug appConfig { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] plugins: { [2022-08-26 11:48:21] node: { [2022-08-26 11:48:21] use: '@cloudbase/framework-plugin-node', [2022-08-26 11:48:21] inputs: { [2022-08-26 11:48:21] name: 'nest-starter', [2022-08-26 11:48:21] path: '/nest-starter', [2022-08-26 11:48:21] entry: 'app.js', [2022-08-26 11:48:21] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:21] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] } [2022-08-26 11:48:21] }, [2022-08-26 11:48:21] repo: { [2022-08-26 11:48:21] Type: 'github', [2022-08-26 11:48:21] Url: '******', [2022-08-26 11:48:21] Name: 'nest-starter', [2022-08-26 11:48:21] WorkDir: 'nest-starter', [2022-08-26 11:48:21] RawCode: '', [2022-08-26 11:48:21] Headers: null, [2022-08-26 11:48:21] Branch: '', [2022-08-26 11:48:21] ProjectId: 0 [2022-08-26 11:48:21] }, [2022-08-26 11:48:21] tags: undefined, [2022-08-26 11:48:21] environment: { TCB_COMMIT_ID: '' }, [2022-08-26 11:48:21] network: { uniqVpcId: '', cloudBaseRun: true }, [2022-08-26 11:48:21] addons: [] [2022-08-26 11:48:21] } [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info 📦 install plugins [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug initHooks {} [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug resolve plugin @cloudbase/[email protected]: use 0.00 s, mismatch:false, resolved version:1.8.15 [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::debug deploy '' '' [2022-08-26 11:48:21] Fri Aug 26 2022 03:48:21 GMT+0000 (Coordinated Universal Time) 1.5 CloudBase Framework::info callHooks 'preDeploy' [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::info 🔧 init: node... [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::debug NodePlugin: init { [2022-08-26 11:48:24] runtime: 'Nodejs10.15', [2022-08-26 11:48:24] entry: 'app.js', [2022-08-26 11:48:24] path: '/nest-starter', [2022-08-26 11:48:24] name: 'nest-starter', [2022-08-26 11:48:24] projectPath: '.', [2022-08-26 11:48:24] platform: 'function', [2022-08-26 11:48:24] wrapExpress: false, [2022-08-26 11:48:24] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:24] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:24] } [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::info 🔨 build: node... [2022-08-26 11:48:24] Fri Aug 26 2022 03:48:24 GMT+0000 (Coordinated Universal Time) 4.0 CloudBase Framework::debug NodePlugin: build { [2022-08-26 11:48:24] runtime: 'Nodejs10.15', [2022-08-26 11:48:24] entry: 'app.js', [2022-08-26 11:48:24] path: '/nest-starter', [2022-08-26 11:48:24] name: 'nest-starter', [2022-08-26 11:48:24] projectPath: '.', [2022-08-26 11:48:24] platform: 'function', [2022-08-26 11:48:24] wrapExpress: false, [2022-08-26 11:48:24] buildCommand: 'npm install --prefer-offline --no-audit --progress=false && npm run build', [2022-08-26 11:48:24] functionOptions: { timeout: 5, envVariables: { NODE_ENV: 'production' } } [2022-08-26 11:48:24] } [2022-08-26 11:48:56] Fri Aug 26 2022 03:48:54 GMT+0000 (Coordinated Universal Time) 34.3 CloudBase Framework::error Command failed: npm install --prefer-offline --no-audit --progress=false && npm run build [2022-08-26 11:48:56] npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 [2022-08-26 11:48:56] npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 [2022-08-26 11:48:56] npm WARN deprecated [email protected]: this library is no longer supported [2022-08-26 11:48:56] npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated [2022-08-26 11:48:56] npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated [2022-08-26 11:48:56] npm notice created a lockfile as package-lock.json. You should commit this file. [2022-08-26 11:48:56] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/chokidar/node_modules/fsevents): [2022-08-26 11:48:56] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) [2022-08-26 11:48:56] [2022-08-26 11:48:56] �[96mnode_modules/@types/superagent/index.d.ts�[0m:�[93m23�[0m:�[93m10�[0m - �[91merror�[0m�[90m TS2305: �[0mModule '"buffer"' has no exported member 'Blob'. [2022-08-26 11:48:56] [2022-08-26 11:48:56] �[7m23�[0m import { Blob } from "buffer"; [2022-08-26 11:48:56] �[7m �[0m �[91m ~~~~�[0m [2022-08-26 11:48:56] [2022-08-26 11:48:56] npm ERR! code ELIFECYCLE [2022-08-26 11:48:56] npm ERR! errno 1 [2022-08-26 11:48:56] npm ERR! [email protected] build: nest build`
[2022-08-26 11:48:56] npm ERR! Exit status 1
[2022-08-26 11:48:56] npm ERR!
[2022-08-26 11:48:56] npm ERR! Failed at the [email protected] build script.
[2022-08-26 11:48:56] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[2022-08-26 11:48:56]
[2022-08-26 11:48:56] npm ERR! A complete log of this run can be found in:
[2022-08-26 11:48:56] npm ERR! /root/.npm/_logs/2022-08-26T03_48_54_666Z-debug.log
[2022-08-26 11:48:56]
[2022-08-26 11:48:56] Fri Aug 26 2022 03:48:54 GMT+0000 (Coordinated Universal Time) 34.3 CloudBase Framework::info 部署日志: '/root/cloudbase-framework/logs/2022-08-26_03-48-20.log'
[2022-08-26 11:48:56] [Pipeline] }
[2022-08-26 11:48:56] [Pipeline] // stage
[2022-08-26 11:48:56] [Pipeline] }
[2022-08-26 11:48:56] $ docker stop --time=1 46f378c9cdc2206ccf79a58e9b314862ff1da29eb257bfff860428ab0a85dd3c
[2022-08-26 11:48:57] $ docker rm -f 46f378c9cdc2206ccf79a58e9b314862ff1da29eb257bfff860428ab0a85dd3c
[2022-08-26 11:48:59] [Pipeline] // withDockerContainer
[2022-08-26 11:48:59] [Pipeline] }
[2022-08-26 11:48:59] [Pipeline] // node
[2022-08-26 11:48:59] [Pipeline] End of Pipeline
[2022-08-26 11:48:59] ERROR: script returned exit code 1
[2022-08-26 11:48:59] Finished: FAILURE

请教一下 Deno 模板中的 State

// src/deps.ts
export type State = State;
import { State } from "https://deno.land/x/[email protected]/application.ts";

这段代码的作用是干啥的?
我这边本地运行会报错:

[!] [#0] starting `deno run --allow-net --allow-env --allow-read --no-check --unstable src/entry.ts`
error: Uncaught SyntaxError: The requested module 'https://deno.land/x/[email protected]/application.ts' does not provide an export named 'State'
[E] [daem] app crashed - waiting for file changes before starting ...

注释掉 import 那行就正常了

image

Nest 模板发布到腾讯云报错

{"requestId":"34b240119b52fd8777c4dce49142ebdc","code":"INVOKE_FUNCTION_FAILED","message":"Error: Cannot find module './dist/main'\n at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)\n at Function.Module._load (internal/modules/cjs/loader.js:508:25)\n at Module.require (internal/modules/cjs/loader.js:637:17)\n at require (internal/modules/cjs/helpers.js:22:18)\n at Object. (/var/user/app.js:2:14)\n at Module._compile (internal/modules/cjs/loader.js:701:30)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)\n at Module.load (internal/modules/cjs/loader.js:600:32)\n at tryModuleLoad (internal/modules/cjs/loader.js:539:12)\n at Function.Module._load (internal/modules/cjs/loader.js:531:3)"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.