Files
SEONexus/doc/Install.md
make 20008dbf97 h
2026-01-09 19:21:52 +08:00

1.0 KiB

Nginx 配置

location / {
    if (!-f $request_filename) {
        rewrite  ^(.*)$  /index.php?s=/$1  last;
    }
}

部署

    1. 克隆代码
    1. 安装扩展 composer install
    1. 配置env文件 cp .example.env .env
    1. 上传logo 等图片到img public/statics/img/*
    1. 初始化数据库 php think db:manage init
    1. 初始化数据库 php think mongo:manag migrate

升级

    1. 拉取代码
    1. 数据库升级 php think migrate:run
    1. 数据库升级 php think mongo:manage
    1. 数据播种 php think db:manage seed
    1. 关闭服务 php think task stop
    1. 启动服务 php think task start -d
    1. 创建migrate //执行命令,创建一个操作文件,一定要用大驼峰写法,如下 php think migrate:create AnyClassNameYouWant

/admin/system/initadminuser

keys "task:novel_source_id:*"

其它配置

    1. 统计代码要在广告配置添加
    1. 系统配置要吸怪对应的战斗信息
    1. seoTdk 管理要修改对应的tdk