##环境
- MySQL 5.1+
- Yii Framework 1.1.20
- Composer
- Redis
- Nodejs
##步骤
- clone本项目至cubingchina目录
- 部署yii至与cubingchina同级的framework目录
- 数据库创建cubingchina, cubingchina_dev, wca_0, wca_1四个数据库,并赋予空密码用户cubingchina相关权限
- 在/path/to/cubingchina/protected/config 新建文件wcaDb,文件内容设置成0或者1
- 导入项目下structure.sql及data.sql到cubingchina和cubingchina_dev
- 执行/path/to/cubingchina/protected/commands/shell/wca_data_sync.sh
- 在/path/to/cubingchina/protected目录下执行composer install
- 在/path/to/cubingchina/public/f 目录下执行npm i 和 npm run build
- nginx/apache的document root指向/path/to/cubingchina/public
- 给/path/to/cubingchina/public/assets及/path/to/cubingchina/protected/runtime可写权限
- 若需要开启DEV模式,设置php环境变量ENV为dev
- 运行
##建议和可能出现的问题