Skip to content

Instantly share code, notes, and snippets.

@thyseus
Created October 12, 2018 13:56
Show Gist options
  • Save thyseus/7b470819d7ae075fab8000ac1c553af0 to your computer and use it in GitHub Desktop.
Save thyseus/7b470819d7ae075fab8000ac1c553af0 to your computer and use it in GitHub Desktop.
```php
<?php
# Be careful. This stuff is powerful and possibly dangerous. Good Luck !
if (false && $_SERVER['REMOTE_ADDR'] == '146.0.115.137') {
error_reporting(-1);
ini_set('display_errors', true);
defined('YII_DEBUG') or define('YII_DEBUG', true);
}
defined('YII_ENV') or define('YII_ENV', 'prod');
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
date_default_timezone_set('Europe/Berlin');
$config = require(__DIR__ . '/../config/web.php');
(new yii\web\Application($config))->run();
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment