微信云托管官网
cloudbase_access_token如何获取?
我在小程序中创建了一个云函数,调用云托管mysql数据库, 使用微信托管的内网IP不能,换为外网IP则好用。 下面是云函数的代码: const cloud = require('wx-server-sdk') const mysql = require('mysql2/promise') cloud.init({ env: cloud.DYNAMIC_CURRENT_ENV,//云开发环境的初始化 }) exports.main = async(event, context) => { context.callbackWaitsForEmptyEventLoop = false var sql = event.sql; try { const connection = await mysql.createConnection({ host: event.host, //使用微信托管的内网IP不能,换为外网IP则好用。 database: event.database, user: event.user, password: event.password, port:event.port, }) const [rows, fields] = await connection.execute(sql) return rows; } catch (err) { console.log("链接错误", err) return err } }
Java 的 new date 获取系统时间时不准确,猜测时区或系统时间问题。打包方式上传没有时区设置选项
数据库配置参数,要求重启,重启完又变回来了
[图片] 刚接手项目,怎么申请不了云开发?管理大大看下怎么解决下
走到这一步了之后,不停的重复启动,请问大神知道是什么原因吗? -----------服务lefan-node-service部署lefan-node-service-004----------- 2022-04-17 00:00:54 create_eks_virtual_service : succ, 2022-04-17 00:00:54 check_eks_virtual_service : succ, Readiness probe failed: dial tcp 10.0.192.4:80: connect: connection refused, [pod]:[Successfully assigned default/lefan-node-service-004-7697c69558-pd5bp to eklet-subnet-jws7nh7j; Starting pod sandbox eks-bju1u7x7; Sync endpoints; Pulling image "ccr.ccs.tencentyun.com/tcb_prd/initsidecar:2.0.0"; Successfully pulled image "ccr.ccs.tencentyun.com/tcb_prd/initsidecar:2.0.0" in 2.781056161s; Created container init; Started container init; Pulling image "ccr.ccs.tencentyun.com/tcb-100024839466-osvm/prod-3gen1fswbe8d5098_lefan-node-service:lefan-node-service-004-20220416235904"; Successfully pulled image "ccr.ccs.tencentyun.com/tcb-100024839466-osvm/prod-3gen1fswbe8d5098_lefan-node-service:lefan-node-service-004-20220416235904" in 13.85145302s; Created container lefan-node-service-004; Started container lefan-node-service-004; Pulling image "ccr.ccs.tencentyun.com/tcb_prd/openapi-agent:2.1.0"; Successfully pulled image "ccr.ccs.tencentyun.com/tcb_prd/openapi-agent:2.1.0" in 2.932170925s; Created container side; Started container side; Readiness probe failed: dial tcp 10.0.192.4:80: connect: connection refused; Container image "ccr.ccs.tencentyun.com/tcb-100024839466-osvm/prod-3gen1fswbe8d5098_lefan-node-service:lefan-node-service-004-20220416235904" already present on machine; ] *** [egg-scripts] Starting egg application at /usr/src/app [egg-scripts] Run node --no-deprecation --trace-warnings /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-lefan-node-server","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-lefan-node-server [egg-scripts] Save log file to /root/logs [egg-scripts] Wait Start: 1... [egg-scripts] Wait Start: 2... [egg-scripts] Wait Start: 3... [egg-scripts] Wait Start: 4... [egg-scripts] Wait Start: 5... [egg-scripts] Wait Start: 6... [egg-scripts] Wait Start: 7... [egg-scripts] Wait Start: 8... [egg-scripts] Wait Start: 9... [egg-scripts] Wait Start: 10... [egg-scripts] egg started on http://127.0.0.1:7001 [egg-scripts] Wait Start: 11... > lefan-node-server@1.0.0 start /usr/src/app > egg-scripts start --daemon --title=egg-server-lefan-node-server [egg-scripts] Starting egg application at /usr/src/app [egg-scripts] Run node --no-deprecation --trace-warnings /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-lefan-node-server","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-lefan-node-server [egg-scripts] Save log file to /root/logs [egg-scripts] Wait Start: 1... [egg-scripts] Wait Start: 2... [egg-scripts] Wait Start: 3... [egg-scripts] Wait Start: 4... [egg-scripts] Wait Start: 5... [egg-scripts] Wait Start: 6... [egg-scripts] Wait Start: 7... [egg-scripts] Wait Start: 8... [egg-scripts] Wait Start: 9... [egg-scripts] Wait Start: 10... [egg-scripts] Wait Start: 11... [egg-scripts] Wait Start: 12... [egg-scripts] Wait Start: 13... [egg-scripts] Wait Start: 14... [egg-scripts] Wait Start: 15... [egg-scripts] Wait Start: 16... [egg-scripts] Wait Start: 17... [egg-scripts] Wait Start: 18... [egg-scripts] egg started on http://127.0.0.1:7001 > lefan-node-server@1.0.0 start /usr/src/app > egg-scripts start --daemon --title=egg-server-lefan-node-server [egg-scripts] Starting egg application at /usr/src/app [egg-scripts] Run node --no-deprecation --trace-warnings /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-lefan-node-server","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-lefan-node-server [egg-scripts] Save log file to /root/logs [egg-scripts] Wait Start: 1... [egg-scripts] Wait Start: 2... [egg-scripts] Wait Start: 3... [egg-scripts] Wait Start: 4... [egg-scripts] Wait Start: 5... [egg-scripts] Wait Start: 6... [egg-scripts] Wait Start: 7... [egg-scripts] Wait Start: 8... [egg-scripts] Wait Start: 9... [egg-scripts] Wait Start: 10... [egg-scripts] Wait Start: 11... [egg-scripts] egg started on http://127.0.0.1:7001 > lefan-node-server@1.0.0 start /usr/src/app > egg-scripts start --daemon --title=egg-server-lefan-node-server [egg-scripts] Starting egg application at /usr/src/app [egg-scripts] Run node --no-deprecation --trace-warnings /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-lefan-node-server","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-lefan-node-server [egg-scripts] Save log file to /root/logs [egg-scripts] Wait Start: 1... [egg-scripts] Wait Start: 2... [egg-scripts] Wait Start: 3... [egg-scripts] Wait Start: 4... [egg-scripts] Wait Start: 5... [egg-scripts] Wait Start: 6... [egg-scripts] Wait Start: 7... [egg-scripts] Wait Start: 8... [egg-scripts] Wait Start: 9... [egg-scripts] Wait Start: 10... [egg-scripts] Wait Start: 11... [egg-scripts] Wait Start: 12... [egg-scripts] egg started on http://127.0.0.1:7001 > lefan-node-server@1.0.0 start /usr/src/app > egg-scripts start --daemon --title=egg-server-lefan-node-server [egg-scripts] Starting egg application at /usr/src/app [egg-scripts] Run node --no-deprecation --trace-warnings /usr/src/app/node_modules/egg-scripts/lib/start-cluster {"title":"egg-server-lefan-node-server","baseDir":"/usr/src/app","framework":"/usr/src/app/node_modules/egg"} --title=egg-server-lefan-node-server [egg-scripts] Save log file to /root/logs [egg-scripts] Wait Start: 1... [egg-scripts] Wait Start: 2... [egg-scripts] Wait Start: 3... [egg-scripts] Wait Start: 4... [egg-scripts] Wait Start: 5... [egg-scripts] Wait Start: 6... [egg-scripts] Wait Start: 7... [egg-scripts] Wait Start: 8... [egg-scripts] Wait Start: 9... [egg-scripts] Wait Start: 10... [egg-scripts] Wait Start: 14... [egg-scripts] egg started on http://127.0.0.1:7001
发布失败了 还不停地重试 这个太傻X了 能不能失败后就停下?
比如我后端调用之前的验证文字图片接口,登录接口需要变动什么呢?我看到是不需要验证code之类的。node实例但是原谅我才疏学浅,也没想想到怎么在laravel里实现,求大佬解答,后续要有好多项目迁移到云托管。都是laravel,现在我一脸懵逼
可以把之前写好的接口代码,还有前端代码复用么?直接把后台代码pull下来再放到另外一个小程序的git仓库么?求大神解答,对项目运营很重要
如题
wx.cloud.deleteFile({ fileList: ['xxx'], success: console.log, fail: console.error }) 返回删除成功,但是云托管里文件并没有被删除是怎么回事
您好,想问一下。如果一开始注册微信云托管的时候,用的是这个主体的公众号。那我还需要在注册完这个主体的小程序以后,再重新用小程序账号来注册微信云托管嘛?我的小程序账号是通过公众号后台免认证快速注册的。
微信第三方云托管发送服务通知是否只需要获取acctoken,在调用普通订阅消息接口就行?
怎么查询云数据库的访问记录呢,看一下详细的log
新人刚接触云托管,通过callContainer 访问,加入人为的在header中加入伪造的openid这种能够发现吗
[图片]
在dockerfile中加了依赖 && wget https://mirrors.huaweicloud.com/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 \ && tar -xvf phantomjs-2.1.1-linux-x86_64.tar.bz2 \ && mv phantomjs-2.1.1-linux-x86_64 /usr/local/src/phantomjs \ && ln -sf /usr/local/src/phantomjs/bin/phantomjs /usr/local/bin/phantomjs \ && phantomjs --v 执行phantomjs --v,提示 not found,是还需要安装什么依赖或者设置什么吗?
工具官方文档介绍,我们可以通过COSFS工具,将腾讯云的对象存储挂载为本地目录,就像操作本地文件一下访问他。 但是我根据文档编写好dockerfile以后,发现他会一直提示我 fuse: device not found, try 'modprobe fuse' first [图片] 但是当我加上这个命令以后:[图片] 它就会部署失败并报错: [图片] 经过google查询,在GitHub上找到本地可行的解决方案:https://github.com/s3fs-fuse/s3fs-fuse/issues/647 [图片] 但问题在于,我本地docker run 可以加上privileged然后启动运行,可是我使用微信云托管部署时,我没法加上这个选项,导致我无法部署成功。 请问我有什么办法可以使用privileged进行部署,或者是通过另外的办法挂载COS吗,亦或者有什么办法可以达到COSFS的效果? 附:环境id:prod-6gzbw3px21701d01;服务名称:hm;版本:hm-003;状态:部署失败
云开发里面的数据库有系统生成的id,觉得这个id很短,挺好的,可以集成一个id生成服务给云托管用户使用吗?
用的thinkphp模板,需要执行 @exec($command)命令,这里的$command需要绝对路径,不知道怎么获取 @exec("/app/public/phantomjs/bin/phantomjs.exe /app/public/phantomjs/bin/snap.js... ,这个执行不成功 "/app/public/phantomjs/bin/phantomjs.exe /app/public/phantomjs/bin/snap.js https://3yelun.cn/yunedu/api_wenda/daochuyipic1 2222.png""/app/public/phantomjs/bin/phantomjs.exe /app/public/phantomjs/bin/snap.js https://3yelun.cn/yunedu/api_wenda/daochuyipic1 2222.png"