Skip to content

Commit

Permalink
更新青龙拉取方式
Browse files Browse the repository at this point in the history
  • Loading branch information
chen310 committed Mar 14, 2022
1 parent bf07ec0 commit 19c0784
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 15 deletions.
41 changes: 37 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -606,20 +606,53 @@ REGION 默认为 `ap-guangzhou` ,可选的地域详见[地域列表](https://c

## 二、部署到青龙面板

### 拉取仓库
### 进入容器

```shell
ql repo https://github.com/chen310/NeteaseCloudMusicTasks.git "index.py" "" "py" && task chen310_NeteaseCloudMusicTasks/ql_update.py
docker exec -it qinglong bash
```

第一次使用需要安装依赖,时间可能会长一些
如果容器名称不是 `qinglong` 则需要修改。

更新代码同样也是用上面的命令
### 拉取代码

```shell
ql repo https://github.com/chen310/NeteaseCloudMusicTasks.git "index.py" "" "py"
```

### 生成配置文件

```shell
task chen310_NeteaseCloudMusicTasks/ql_update.py
```

### 安装依赖

```shell
apk add python3-dev gcc libc-dev
pip3 install json5 pycryptodomex
```

### 修改配置文件

对配置文件 `config.json` 进行修改

### 更新代码

如果需要更新代码则同样先进入容器

```shell
docker exec -it qinglong bash
```

然后再更新

```shell
ql repo https://github.com/chen310/NeteaseCloudMusicTasks.git "index.py" "" "py"
task chen310_NeteaseCloudMusicTasks/ql_update.py

```

## 三、本地运行

### 下载
Expand Down
11 changes: 0 additions & 11 deletions ql_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,3 @@
os.system('cp {} {}'.format(repo_config, scripts_config))
print('复制配置示例文件...')
os.system('cp -f {} {}'.format(repo_config, example_config))

try:
import requests
import json5
from Cryptodome.Cipher import AES
except:
print('安装依赖...')
os.system('apk update')
os.system('apk upgrade')
os.system('apk add gcc libc-dev')
os.system('pip3 install -r {}'.format(dependencies))

0 comments on commit 19c0784

Please sign in to comment.