# 牙医 **Repository Path**: ivan645406689/dentist ## Basic Information - **Project Name**: 牙医 - **Description**: 贝致口腔APP - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2017-10-11 - **Last Updated**: 2022-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #T-Manage ### 项目部署 #### 服务器环境
composer install composer update # 更新依赖插件时使用#### 文件自动依赖
composer dump-autoload#### 生成配置文件
cp .env.example .env#### 生成KEY
php artisan key:generate#### 目录权限
chmod -R 777 storage public bootstrap#### 数据迁移和外键关联(初始化数据库时使用)
php artisan migrate php artisan passport:install#### 建立路由缓存
php artisan route:cache#### 安装cnpm
npm config set strict-ssl false # 如果没安装过cnpm,部分电脑需要先关掉strict-ssl npm install -g cnpm --registry=https://registry.npm.taobao.org # 安装cnpm npm config set strict-ssl true # 安装完成后需恢复strict-ssl#### 安装前端依赖插件
cnpm install # linux系统 cnpm install --no-bin-links # windows系统#### 执行vue组件编译
cnpm run dev#### 生产环境编译方法
cnpm run production#### 安装搜索引擎
wget http://www.xunsearch.com/download/xunsearch-full-latest.tar.bz2 # 下载软件包 tar -xjf xunsearch-full-latest.tar.bz2 # 解压软件包 cd xunsearch-full-***/ # 进入解压后的软件目录 sh setup.sh # 执行安装 /usr/local/xunsearch/bin/xs-ctl.sh restart # 根据安装成功后的提示命令,启动搜索引擎,如果不成功,就停止后再启动#### memcached 安装
yum install memcached yum install --enablerepo=remi --enablerepo=remi-php56 php-pecl-memcached systemctl start memcached