Support configure environment variable to skip interactive configuration, which is require when we want to setup by script.

This commit is contained in:
greatbody
2024-09-06 10:02:45 +08:00
parent 912cb397ea
commit 0fb61ce30e
2 changed files with 11 additions and 4 deletions
+5 -1
View File
@@ -18,6 +18,10 @@ cd Xboard
3. 执行数据库安装命令
> 选择 **启用sqlite** 和 **Docker内置的Redis**
```
docker compose run -it --rm -e enable_sqlite=true -e enable_redis=true -e admin_account=your_admin_email@example.com xboard php artisan xboard:install
```
> 或者根据自己的需要在运行时选择
```
docker compose run -it --rm xboard php artisan xboard:install
```
> 执行这条命令之后,会返回你的后台地址和管理员账号密码(你需要记录下来)
@@ -67,4 +71,4 @@ docker compose up -d
```
### 注意
启用webman后做的任何代码修改都需要重启生效
启用webman后做的任何代码修改都需要重启生效