<?php // comment out the following two lines when deployed to production define('DOTENV_FILE', '.env'); require __DIR__ . '/../vendor/autoload.php'; define('YII_DEBUG', env('YII_DEBUG')); define('YII_ENV', env('YII_ENV')); require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php'; $config = require __DIR__ . '/../config/web.php'; (new yii\web\Application($config))->run();