The official website of Cubing China https://cubingchina.com.
- MySQL 5.1+
- Yii Framework 1.1.20
- Composer
- Redis
- Clone this repo to
/path/to/cubingchina
. - Put
framework
directory ofYii
to/path/to/cubingchina/../framework
. - Create four databases, each named
cubingchina
,cubingchina_dev
,wca_0
andwca_1
. Then grant privileges on these tocubingchina
with empty password. - Import
structure.sql
anddata.sql
intocubingchina
andcubingchina_dev
. - Run
/path/to/cubingchina/protected/commands/shell/wca_data_sync.sh
. cd /path/to/cubingchina/protected && composer install
.- Set document root of
Nginx
/Apache
to/path/to/cubingchina/public
. - Make sure
/path/to/cubingchina/public/assets
and/path/to/cubingchina/protected/runtime
are writable. - If you need to switch to dev mode, set
ENV
ofphp
to dev. - Enjoy.