3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
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.
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
15 use Cake\Core\Configure;
16 use Cake\Core\Exception\MissingPluginException;
20 * Additional bootstrapping and configuration for CLI environments should
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'));
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');
34 } catch (MissingPluginException $e) {
35 // Do not halt if the plugin is missing
38 Plugin::load('Migrations');