Steve0x2a / DLimiter

利用Webhooks,平衡下载器PT上传和外网视频播放的限速器
40 stars 10 forks source link

大佬 部署能说的更详细一点吗 小白不太懂 #1

Closed flyjinhui closed 1 year ago

flyjinhui commented 1 year ago

是直接解压文件到群晖本地,然后ssh 运行那个代码就可以了吗?

Steve0x2a commented 1 year ago

补充了一些文档,现在应该足够简单了。

flyjinhui commented 1 year ago

补充了一些文档,现在应该足够简单了。

谢谢大佬 终于用上了

flyjinhui commented 1 year ago

大佬,麻烦看看报错怎么回事 下面是docker的日志 <!DOCTYPE html>

Dlimiter1

datestreamcontent
2023-02-05T17:35:38.905740266Zstdout_rtoml.TomlParsingError: unexpected character found: `\u{89e6}` at line 21 column 20
2023-02-05T17:35:38.905641986Zstdout    return _rtoml.deserialize(toml)
2023-02-05T17:35:38.905554722Zstdout  File "/usr/local/lib/python3.10/site-packages/rtoml/__init__.py", line 35, in loads
2023-02-05T17:35:38.905518666Zstdout    return loads(toml)
2023-02-05T17:35:38.905302217Zstdout  File "/usr/local/lib/python3.10/site-packages/rtoml/__init__.py", line 26, in load
2023-02-05T17:35:38.905268466Zstdout    cfg = edict(rtoml.load(Path(self.path)))
2023-02-05T17:35:38.905229675Zstdout  File "/app/conf/__init__.py", line 14, in parse_conf
2023-02-05T17:35:38.905179948Zstdout    config = Config(path="./conf/config.toml").parse_conf()
2023-02-05T17:35:38.905095987Zstdout  File "/app/conf/__init__.py", line 21, in <module>
2023-02-05T17:35:38.905057739Zstdout    from conf import config
2023-02-05T17:35:38.904902781Zstdout  File "/app/utils/limiter.py", line 1, in <module>
2023-02-05T17:35:38.904871203Zstdout    from utils.limiter import player_apply_limit
2023-02-05T17:35:38.904824378Zstdout  File "/app/routes/emby.py", line 3, in <module>
2023-02-05T17:35:38.904783498Zstdout    from routes.emby import bp_emby
2023-02-05T17:35:38.904716885Zstdout  File "/app/routes/__init__.py", line 2, in <module>
2023-02-05T17:35:38.904676582Zstdout    from routes import bp_player
2023-02-05T17:35:38.904578447Zstdout  File "/app/main.py", line 2, in <module>
2023-02-05T17:35:38.904491304Zstdout  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
2023-02-05T17:35:38.904392526Zstdout  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
2023-02-05T17:35:38.904284603Zstdout  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
2023-02-05T17:35:38.904193685Zstdout  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
2023-02-05T17:35:38.904144015Zstdout  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
2023-02-05T17:35:38.904034507Zstdout  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
2023-02-05T17:35:38.903984181Zstdout    return _bootstrap._gcd_import(name[level:], package, level)
2023-02-05T17:35:38.903699643Zstdout  File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
2023-02-05T17:35:38.903659838Zstdout    module = import_module(import_name)
2023-02-05T17:35:38.903389731Zstdout  File "/usr/local/lib/python3.10/site-packages/hypercorn/utils.py", line 115, in load_application
2023-02-05T17:35:38.903336012Zstdout    load_application(config.application_path, config.wsgi_max_body_size)
2023-02-05T17:35:38.903072254Zstdout  File "/usr/local/lib/python3.10/site-packages/hypercorn/run.py", line 41, in run
2023-02-05T17:35:38.903033821Zstdout    run(config)
2023-02-05T17:35:38.902821825Zstdout  File "/usr/local/lib/python3.10/site-packages/hypercorn/__main__.py", line 287, in main
2023-02-05T17:35:38.902765897Zstdout    sys.exit(main())
2023-02-05T17:35:38.902143064Zstdout  File "/usr/local/bin/hypercorn", line 8, in <module>
2023-02-05T17:35:38.901557352ZstdoutTraceback (most recent call last):
2023-02-05T17:35:38.150407205Zstdout更新成功...
2023-02-05T17:35:38.149805424ZstdoutHEAD is now at 4660cc8 Merge pull request #7 from DDS-Derek/main
2023-02-05T17:35:38.137127277Zstdout * branch            main       -> FETCH_HEAD
2023-02-05T17:35:38.137012391ZstdoutFrom https://github.com/Steve0x2a/DLimiter
2023-02-05T17:35:38.133083146Zstdoutremote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
2023-02-05T17:35:36.951019484Zstdout更新程序...
Steve0x2a commented 1 year ago

大佬,麻烦看看报错怎么回事 下面是docker的日志

Dlimiter1

date stream content 2023-02-05T17:35:38.905740266Z stdout _rtoml.TomlParsingError: unexpected character found: \u{89e6} at line 21 column 20 2023-02-05T17:35:38.905641986Z stdout     return _rtoml.deserialize(toml) 2023-02-05T17:35:38.905554722Z stdout   File "/usr/local/lib/python3.10/site-packages/rtoml/init.py", line 35, in loads 2023-02-05T17:35:38.905518666Z stdout     return loads(toml) 2023-02-05T17:35:38.905302217Z stdout   File "/usr/local/lib/python3.10/site-packages/rtoml/init.py", line 26, in load 2023-02-05T17:35:38.905268466Z stdout     cfg = edict(rtoml.load(Path(self.path))) 2023-02-05T17:35:38.905229675Z stdout   File "/app/conf/init.py", line 14, in parse_conf 2023-02-05T17:35:38.905179948Z stdout     config = Config(path="./conf/config.toml").parse_conf() 2023-02-05T17:35:38.905095987Z stdout   File "/app/conf/init.py", line 21, in  2023-02-05T17:35:38.905057739Z stdout     from conf import config 2023-02-05T17:35:38.904902781Z stdout   File "/app/utils/limiter.py", line 1, in  2023-02-05T17:35:38.904871203Z stdout     from utils.limiter import player_apply_limit 2023-02-05T17:35:38.904824378Z stdout   File "/app/routes/emby.py", line 3, in  2023-02-05T17:35:38.904783498Z stdout     from routes.emby import bp_emby 2023-02-05T17:35:38.904716885Z stdout   File "/app/routes/init.py", line 2, in  2023-02-05T17:35:38.904676582Z stdout     from routes import bp_player 2023-02-05T17:35:38.904578447Z stdout   File "/app/main.py", line 2, in  2023-02-05T17:35:38.904491304Z stdout   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed 2023-02-05T17:35:38.904392526Z stdout   File "<frozen importlib._bootstrap_external>", line 883, in exec_module 2023-02-05T17:35:38.904284603Z stdout   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked 2023-02-05T17:35:38.904193685Z stdout   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked 2023-02-05T17:35:38.904144015Z stdout   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load 2023-02-05T17:35:38.904034507Z stdout   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import 2023-02-05T17:35:38.903984181Z stdout     return _bootstrap._gcd_import(name[level:], package, level) 2023-02-05T17:35:38.903699643Z stdout   File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module 2023-02-05T17:35:38.903659838Z stdout     module = import_module(import_name) 2023-02-05T17:35:38.903389731Z stdout   File "/usr/local/lib/python3.10/site-packages/hypercorn/utils.py", line 115, in load_application 2023-02-05T17:35:38.903336012Z stdout     load_application(config.application_path, config.wsgi_max_body_size) 2023-02-05T17:35:38.903072254Z stdout   File "/usr/local/lib/python3.10/site-packages/hypercorn/run.py", line 41, in run 2023-02-05T17:35:38.903033821Z stdout     run(config) 2023-02-05T17:35:38.902821825Z stdout   File "/usr/local/lib/python3.10/site-packages/hypercorn/main.py", line 287, in main 2023-02-05T17:35:38.902765897Z stdout     sys.exit(main()) 2023-02-05T17:35:38.902143064Z stdout   File "/usr/local/bin/hypercorn", line 8, in  2023-02-05T17:35:38.901557352Z stdout Traceback (most recent call last): 2023-02-05T17:35:38.150407205Z stdout 更新成功... 2023-02-05T17:35:38.149805424Z stdout HEAD is now at 4660cc8 Merge pull request #7 from DDS-Derek/main 2023-02-05T17:35:38.137127277Z stdout  * branch            main       -> FETCH_HEAD 2023-02-05T17:35:38.137012391Z stdout From https://github.com/Steve0x2a/DLimiter 2023-02-05T17:35:38.133083146Z stdout remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0�[K 2023-02-05T17:35:36.951019484Z stdout 更新程序...

@flyjinhui 目测是你的配置格式不正确

Steve0x2a commented 1 year ago

如果还有问题,请另开issue