#T-Manage
项目部署
服务器环境
依赖软件包:php5.6, mysql5.6, redis2.8, ImageMagick6.7
php模块: gd mycrpt openssl mbstring imagick fileinfo pdo redis bcmath
安装依赖插件
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