index.php 574 B

123456789101112131415161718
  1. <?php
  2. // comment out the following two lines when deployed to production
  3. defined('YII_DEBUG') or define('YII_DEBUG', true);
  4. defined('YII_ENV') or define('YII_ENV', 'dev');
  5. require __DIR__ . '/../vendor/autoload.php';
  6. require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
  7. require __DIR__ . '/../common/libs/aliyun-log-php-sdk/Log_Autoload.php';
  8. defined('LEWAIMAI_DEBUG') or define('LEWAIMAI_DEBUG', false);
  9. defined('LEWAIMAI_VERSION') or define('LEWAIMAI_VERSION', "1.0.0.0");
  10. $config = require __DIR__ . '/../config/web.php';
  11. (new yii\web\Application($config))->run();