The official website of Cubing China https://cubingchina.com.
- MySQL 5.1+
- Yii Framework 1.1.20
- Composer
- Redis
- Nodejs
- 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. cd /path/to/cubingchina/protected/config
and Create one file namedwcaDb
then Set the content as0
or1
.- 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
.cd /path/to/cubingchina/public/f && npm i && npm run build
.- 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.