Skip to content
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

feat: 基于配置文件完成初始化过程 #1290

Closed
liangyuanpeng opened this issue Mar 3, 2021 · 6 comments
Closed

feat: 基于配置文件完成初始化过程 #1290

liangyuanpeng opened this issue Mar 3, 2021 · 6 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@liangyuanpeng
Copy link

概述

当前在每次在部署一个新的halo博客时都需要在页面填写初始化信息,如果这个信息可以在spring的配置文件配置完成,那么就省去了这个初始化的过程,同时对于docker环境来说可以直接使用环境变量来完成这个内容,会比当前便利不少。

动机

在不同机器上部署halo(每次在新环境部署)后都需要在页面填写初始化信息

详细解释

@ruibaby
Copy link
Member

ruibaby commented Mar 3, 2021

在页面上初始化对于大多数人来说是最好的选择。不认同你的说法。

@ruibaby ruibaby added the kind/support Categorizes issue or PR as a support question. label Mar 3, 2021
@ruibaby
Copy link
Member

ruibaby commented Mar 3, 2021

在下一个版本,你可以通过数据导入导出来实现你的需求。

参考:

@LIlGG
Copy link
Member

LIlGG commented Mar 3, 2021

我也认为尽量不要使用各种配置文件来初始化。对于用户来说,具有零配置的初始化界面是最好的,且并不是每个用户都了解什么是 spring 的配置文件。
但可以针对于特殊人群,例如开发者等,单独给予功能更强大的方式。

@liangyuanpeng
Copy link
Author

感谢如此快速回复,需要纠正的一点是 这个issue是希望提供多一个方式,并不需要抛弃现有的页面填写内容初始化的方式。

@ruibaby
Copy link
Member

ruibaby commented Mar 3, 2021

@liangyuanpeng 可以尝试一下 json 数据文件导入的方式,我认为要比写一个一个配置方便很多。你只需要创建一个初始博客,然后在后台导出就可以得到这个文件。然后每次新建博客的时候导入就行了。

@liangyuanpeng
Copy link
Author

@liangyuanpeng 可以尝试一下 json 数据文件导入的方式,我认为要比写一个一个配置方便很多。你只需要创建一个初始博客,然后在后台导出就可以得到这个文件。然后每次新建博客的时候导入就行了。

OK thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants