walinejs / tcb-starter Goto Github PK
View Code? Open in Web Editor NEWWaline 腾讯云开发快速部署模板
Waline 腾讯云开发快速部署模板
建议在 tcb-starter
添加指定版本:
{
"version": "2.0",
"envId": "{{envId}}",
"$schema": "https://framework-1258016615.tcloudbaseapp.com/schema/latest.json ",
"framework": {
"name": "waline",
"plugins": {
"node": {
"use": "@cloudbase/framework-plugin-node",
"inputs": {
"entry": "app.js",
"name": "waline",
"path": "/waline",
"runtime": "Nodejs12.16"
}
}
}
}
}
最初由 JaxsonWang 在 walinejs/waline#478 (comment) 发布
类似
{"errno":404,"errmsg":"url /waline/ui/profile
not found."}
{"errno":404,"errmsg":"url /waline
not found."}
查看日志如下报错内容
START RequestId:e5164189-bb08-11eb-9728-525400a8c4bb
e5164189-bb08-11eb-9728-525400a8c4bb {message:url /waline/ui/profile
not found.}
2021-05-22 22:20:44 e5164189-bb08-11eb-9728-525400a8c4bb {"traceId":"322f03ef3265419bb72e771f6cde0615","httpPath":"/waline/ui/profile","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.212 Safari/537.36","invokerIp":"106.117.252.156","spanId":"80200e832cec88d6","service":"function","domain":"waline-8gawvfor4ef6d931-1252617797.ap-shanghai.app.tcloudbase.com","startTime":"1621693244246","event":"GET","timeCost":"25","statusCode":"404"}
REPORT RequestId:e5164189-bb08-11eb-9728-525400a8c4bb Duration:2ms Memory:128MB MemUsage:80.832031MB
END RequestId:e5164189-bb08-11eb-9728-525400a8c4bb
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
package.json
@cloudbase/framework-plugin-node 1.9.6
通过一键部署后,会出现如下报错
错误码: INVOKE_FUNCTION_FAILED
错误信息: Code: -1 ScfRequestId: c54e0727-6396-11ee-b3fe-52540043f6d7 Error: /var/user/node_modules/think-model-mysql2/node_modules/lru-cache/dist/cjs/index.js:359 #initializeTTLTracking() { ^ SyntaxError: Unexpected token '(' at wrapSafe (internal/modules/cjs/loader.js:1072:16) at Module._compile (internal/modules/cjs/loader.js:1122:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) at Module.load (internal/modules/cjs/loader.js:1002:32) at Function.Module._load (internal/modules/cjs/loader.js:901:14) at Module.require (internal/modules/cjs/loader.js:1044:19) at require (internal/modules/cjs/helpers.js:77:18) at Object. (/var/user/node_modules/think-model-mysql2/node_modules/lru-cache/dist/cjs/index-cjs.js:5:36) at Module._compile (internal/modules/cjs/loader.js:1158:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
无法使用
其次,腾讯云cloudbase更新新版控制台后,需要将页面设置为旧版控制台页面才会弹出快速部署选项弹窗,否则没有任何反应
提示 未获取到cloudbaserc.json文件,将使用推荐配置
如果用命令行部署,则提示无函数
tcb fn deploy -e walinexxxxxxxxxxxxxxx
CloudBase CLI 1.2.5
CloudBase Framework 1.6.0
? 没有指定需要部署的云函数,是否部署配置文件中的全部云函数? Yes
✔ 成功部署 0 个函数
按照文档npx @cloudbase/cli -e xxxx 则提示 没有-e选项
基于CloudBase的后台管理中,评论以及个人设置仍指向主域名子目录,而不是子目录 (/waline)
后一级。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.