客户红包转账项目
1 复制
复制目录fastadmin的zip的目录
配置nginx
2 配置好访问后进行install
这一步要有数据库 (宝塔数据库创建即可)
管理员登录地址 账号和密码
3 修改 '/.gitignore' 如下
/nbproject/
/runtime/*
/addons/*
/public/assets/libs/
/public/assets/addons/*
/public/uploads/*
.idea
composer.lock
*.log
*.css.map
!.gitkeep
.env
.svn
.vscode
node_modules
.user.ini
4 生成 '/.env' 如下 修改为正式 并写入 /.env.sample
[app]
debug = true
trace = false
[database]
hostname = 62.234.15.xxx
database = wuliu20230605
username = wuliu20230605
password = MnHCfM6ZHJypZ3NR
hostport = 3306
prefix = fa_
debug = true
5 git push
6 宝塔创建网站项目
7 git pull
8 修改 1 项目目录和运行目录 2伪静态
9 服务器目录权限调整
chmod -R 777 public/assets/
chmod -R 777 application/extra/
chmod -R 777 runtime/
# 记得git push
软件架构
fastadmin 版本1.3.5.20221214
# /application/common/controller/Api.php 文件中token的
$token = $this->request->header('xzd-token');
if(!$token){
$token = $this->request->server('HTTP_TOKEN', $this->request->request('token', \think\Cookie::get('token')));
}
# 新增 crud和菜单
php think crud -t bz_country -u 1
# 删除 crud和菜单
php think crud -t bz_country -d 1
php think menu -c bz/country -d 1 # 建议菜单去数据库删除
网友评论