Skip to content

Commit

Permalink
📝 添加腾讯云函数文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Sitoi committed May 23, 2021
1 parent 6db2f76 commit 48d8192
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN set -ex \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& chmod +x /usr/local/bin/start.sh \
&& pip install dailycheckin \
&& pip install dailycheckin --upgrade \
&& ln -s /root/.local/bin/dailycheckin /usr/bin/dailycheckin

ADD . /dailycheckin
Expand Down
2 changes: 1 addition & 1 deletion docker/default_list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

##############每日签到一次任务##############
# 每日签到(8:45 执行一次)
5 14 * * * cd /dailycheckin && dailycheckin >> /dailycheckin/logs/dailycheckin.log 2>&1
45 8 * * * cd /dailycheckin && dailycheckin >> /dailycheckin/logs/dailycheckin.log 2>&1
2 changes: 1 addition & 1 deletion docker/default_task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
export LANG="zh_CN.UTF-8"

echo "定时任务更新依赖..."
pip install dailycheckin
pip install dailycheckin --upgrade

defaultListFile="/dailycheckin/default_list.sh"

Expand Down
2 changes: 1 addition & 1 deletion docker/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
export LANG="zh_CN.UTF-8"

echo "安装最新依赖..."
pip install dailycheckin
pip install dailycheckin --upgrade

defaultListFile="/dailycheckin/default_list.sh"

Expand Down
Binary file modified docs/img/scf_install.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions docs/tencent-scf.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
![创建云函数](img/scf_create.png)


```python
# -*- coding: utf-8 -*-
from dailycheckin.main import checkin
Expand All @@ -16,13 +15,13 @@ def main_handler(event, context):
checkin()
```

### 二、安装依赖包
### 二、安装依赖包(更新依赖与安装一致)

![安装依赖包](img/scf_install.png)

```bash
cd src
pip3 install dailycheckin -t .
pip3 install dailycheckin --upgrade -t .
```

### 三、添加配置文件
Expand All @@ -32,4 +31,3 @@ pip3 install dailycheckin -t .
### 四、部署测试

![部署测试](img/scf_test.png)

0 comments on commit 48d8192

Please sign in to comment.