# Dentist **Repository Path**: nir_passion/Dentist ## Basic Information - **Project Name**: Dentist - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-06-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Dentist >克隆完项目后,请按如下方式操作 ### 忽略数据库配置文件修改追踪 假设你在项目的根目录,即 Dentis/ ``` shell git update-index --assume-unchanged application/config/database.php git update-index --assume-unchanged application/config/wechat.php git update-index --assume-unchanged application/config/wxpay.php git update-index --assume-unchanged application/config/alidayu.php ``` ### 需设置读写权限目录 1. /application/cache/ 2. /application/logs/ 3. /applocation/sessions/ 4. /uploads/clinics/banner/ 5. /uploads/clinics/editor/ 6. /uploads/experts/avatar/ 7. /uploads/experts/prove/ 8. /uploads/news/ ``` shell chmod 777 上述目录 ``` ### 迁移数据库表结构 假设你已建好相应数据库,并在 application/config/database.php 中做好正确配置 ``` shell php index.php migrate ``` ### 创建后台管理员账户 未开放注册功能,迁移数据库表结构完成后,请执行如下命令,生成一个管理员账户 ``` shell #账户:dentist、密码:dentist php index.php migrate create_backend_admin #如果你想自定义账户(admin)、密码(123456),在上述命令后加上对应参数即可,例如: php index.php migrate create_backend_admin admin 123456 ``` 管理员账户名唯一,即不允许重复的 username ,若执行报错,请确保管理员账户名不能重复。