-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature:为非桌面环境提供修改部分 koishi.yml
的功能
#100
Comments
I am assuming you're talking about linux server. Sorry if the answer beyonds that. I think you could always use other cli tools to achieve this like: sed 's/^host:.*$/host: 0.0.0.0/' koishi.yml Not to mention there are |
的确有在考虑通过类似 不过更改完成后应该直接重启对应实例吗?Koishi 目前似乎没有方法程序性地触发热重载或冷重载。 |
I think if you instint to add a command like above, would it be better to be an option like |
所以要不要增加一个环境变量之类,默认值改成 |
这个好诶( Generated by koishi-plugin-github. |
这个好诶( Generated by koishi-plugin-github. |
使用 此外我也不希望 Koishi 为 Koishi Desktop 做出任何额外的更改, |
不,我的意思是直接改 satori 源码,将默认值变成 但诚然我不认为这是一个很好的改法,因为会让网页中的配置失去一定的直观性。默认值如果是易变的,可能会引起用户的疑惑。 |
是的。并且我坚持 这里 的看法,我认为 expose 应该是一个一次性的操作,因为没有场景会需要单次、临时的 expose。expose 应当通过直接修改配置文件的方式实现。 用户可以通过三种方式中的任一种实现 expose:
之后,使用 Koishi 侧无需也不应对此需求进行代码层面的修改。 |
The issue in koishijs/koishi#970 is even not using desktop but docker, the user is a bt user so he cannot easily touch the configuration files when he didn't mount the volume. I think if you're using desktop, you're 99.99% in a GUI, which has at least a valid browser for you to change the ip. As for linux desktop user, I really don't think this is an issue. To be clear, I am not saying that the |
来自: koishijs/koishi#970
为非桌面环境用户提供例如
koi default --config host 0.0.0.0
的命令来修改实例 default 的host
为0.0.0.0
。The text was updated successfully, but these errors were encountered: