Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Craft web bootstrap file
- */
- // Set path constants
- define('CRAFT_BASE_PATH', dirname(__FILE__));
- define('CRAFT_VENDOR_PATH', './vendor');
- // Load Composer's autoloader
- require_once CRAFT_VENDOR_PATH.'/autoload.php';
- // Load dotenv?
- if (file_exists(CRAFT_BASE_PATH.'/.env')) {
- (new Dotenv\Dotenv(CRAFT_BASE_PATH))->load();
- }
- // Load and run Craft
- define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production');
- $app = require CRAFT_VENDOR_PATH.'/craftcms/cms/bootstrap/web.php';
- $app->run();
Add Comment
Please, Sign In to add comment