-
|
刚把yukiko部署到vps上 跑起来之后发现config.yml读不到 报KeyError 有人遇到过吗 本地跑没问题的 |
Beta Was this translation helpful? Give feedback.
Answered by
dwgx
Apr 9, 2026
Replies: 1 comment
-
|
你看一下是不是工作目录不对 yukiko启动的时候会从当前目录找config/ 如果你是用systemd跑的 要在service文件里加WorkingDirectory [Service]
WorkingDirectory=/opt/yukiko
ExecStart=/usr/bin/python3 main.py或者直接cd到项目目录再启动就行了 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dwgx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你看一下是不是工作目录不对 yukiko启动的时候会从当前目录找config/
如果你是用systemd跑的 要在service文件里加WorkingDirectory
或者直接cd到项目目录再启动就行了