Merge branch 'main' of feistymeow.org:feisty_meow
[feisty_meow.git] / config / bootstrap_cli.php
1 <?php
2 /**
3  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5  *
6  * Licensed under The MIT License
7  * For full copyright and license information, please see the LICENSE.txt
8  * Redistributions of files must retain the above copyright notice.
9  *
10  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11  * @link          http://cakephp.org CakePHP(tm) Project
12  * @since         3.0.0
13  * @license       http://www.opensource.org/licenses/mit-license.php MIT License
14  */
15 use Cake\Core\Configure;
16 use Cake\Core\Exception\MissingPluginException;
17 use Cake\Core\Plugin;
18
19 /**
20  * Additional bootstrapping and configuration for CLI environments should
21  * be put here.
22  */
23
24 // Set the fullBaseUrl to allow URLs to be generated in shell tasks.
25 // This is useful when sending email from shells.
26 //Configure::write('App.fullBaseUrl', php_uname('n'));
27
28 // Set logs to different files so they don't have permission conflicts.
29 Configure::write('Log.debug.file', 'cli-debug');
30 Configure::write('Log.error.file', 'cli-error');
31
32 try {
33     Plugin::load('Bake');
34 } catch (MissingPluginException $e) {
35     // Do not halt if the plugin is missing
36 }
37
38 Plugin::load('Migrations');