Skip to content

2016WUJI01/cubingchina

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cubingchina

The official website of Cubing China https://cubingchina.com.

Installation

Environments

  1. Nginx/Apache
  2. PHP 7.0+
  1. MySQL 5.1+
  2. Yii Framework 1.1.20
  3. Composer
  4. Redis
  5. Nodejs

Steps

  1. Clone this repo to /path/to/cubingchina.
  2. Put framework directory of Yii to /path/to/cubingchina/../framework.
  3. Create four databases, each named cubingchina, cubingchina_dev, wca_0 and wca_1. Then grant privileges on these to cubingchina with empty password.
  4. cd /path/to/cubingchina/protected/config and Create one file named wcaDb then Set the content as 0 or 1.
  5. Import structure.sql and data.sql into cubingchina and cubingchina_dev.
  6. Run /path/to/cubingchina/protected/commands/shell/wca_data_sync.sh.
  7. cd /path/to/cubingchina/protected && composer install.
  8. cd /path/to/cubingchina/public/f && npm i && npm run build.
  9. Set document root of Nginx/Apache to /path/to/cubingchina/public.
  10. Make sure /path/to/cubingchina/public/assets and /path/to/cubingchina/protected/runtime are writable.
  11. If you need to switch to dev mode, set ENV of php to dev.
  12. Enjoy.

Suggestions or Possible mistakes

  1. Local server environment include Apache, Mysql, PHP such as WAMP, MAMP or XAMMP are recommanded
  2. wca_data_sync.sh include grep, lftp, sedcommands,install them before run this script
  3. The rewrite rules of Apache must be configed to index.php

About

The official website of Cubing China.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.9%
  • PHP 27.2%
  • CSS 4.3%
  • Less 0.4%
  • HTML 0.1%
  • Shell 0.1%