Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【提醒】云函数部署几个关键问题,其余部署遇到的问题将不再解答!2021.8.19 更新! #15

Open
hwkxk opened this issue Aug 2, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@hwkxk
Copy link
Owner

hwkxk commented Aug 2, 2021

1.关于log.txt文件读写权限问题:

因腾讯云函数要 /tmp 目录才能读写文件,需将notify.py和main.py里面日记路径 ./log.txt 改成 ../../tmp/log.txt,再上传!

2.函数执行入口问题:

建议查看这个腾讯云函数文档:https://cloud.tencent.com/document/product/583/19805
执行方法的格式里面写的很清楚:文件名.函数入口 ,不用动代码
函数管理-函数代码-执行方法改成:main.main

3.部署区域

任务几个请求的域名中是屏蔽非大陆IP的(请部署到广州、上海、北京、成都这几个区域内),否则无法正常执行!

4.云函数时区/触发时间问题

未在函数配置变量设置 TZ=Asia/Shanghai 时区的,请把定时触发改成 自定义触发周期 在早上8点后执行!
不然签到会报错!例如每天8时10分0秒执行的Cron表达式为:0 10 8 * * * *

请在本地测试能跑后,复制到腾讯云,处理以上几个问题后也能正常跑起来

其他部署遇到的莫名其妙问题请自行善用各种搜索引擎解决!
请不要再 New issues !

@hwkxk hwkxk changed the title 【提醒】云函数部署2个关键问题,其余部署遇到的问题将不再解答! 【提醒】云函数部署几个关键问题,其余部署遇到的问题将不再解答! Aug 4, 2021
@hwkxk hwkxk pinned this issue Aug 6, 2021
@hwkxk hwkxk added the good first issue Good for newcomers label Aug 9, 2021
@hwkxk hwkxk changed the title 【提醒】云函数部署几个关键问题,其余部署遇到的问题将不再解答! 【提醒】云函数部署几个关键问题,其余部署遇到的问题将不再解答!2021.8.19 更新! Aug 19, 2021
@hwkxk hwkxk mentioned this issue Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant