File tree Expand file tree Collapse file tree 7 files changed +14
-18
lines changed Expand file tree Collapse file tree 7 files changed +14
-18
lines changed Original file line number Diff line number Diff line change 122
122
RewriteRule .* - [L,R=405 ]
123
123
124
124
<IfModule mod_setenvif.c >
125
+
126
+ ############################################
127
+ ## Enable Developer Mode based on OS environment variable
128
+
129
+ SetEnvIfExpr "osenv('MAGE_IS_DEVELOPER_MODE') == '1 '" MAGE_IS_DEVELOPER_MODE=1
130
+
125
131
<IfModule mod_headers.c >
126
132
127
133
############################################
Original file line number Diff line number Diff line change 49
49
exit ;
50
50
}
51
51
52
- if (isset ($ _SERVER ['MAGE_IS_DEVELOPER_MODE ' ])) {
53
- Mage::setIsDeveloperMode (true );
54
- }
55
-
56
- #ini_set('display_errors', 1);
57
-
58
52
Mage::$ headersSentThrowsException = false ;
59
53
Mage::init ('admin ' );
60
54
Mage::app ()->loadAreaPart (Mage_Core_Model_App_Area::AREA_GLOBAL , Mage_Core_Model_App_Area::PART_EVENTS );
Original file line number Diff line number Diff line change 30
30
31
31
Mage::register ('original_include_path ' , get_include_path ());
32
32
33
+ if (!empty ($ _SERVER ['MAGE_IS_DEVELOPER_MODE ' ]) || !empty ($ _ENV ['MAGE_IS_DEVELOPER_MODE ' ])) {
34
+ Mage::setIsDeveloperMode (true );
35
+ ini_set ('display_errors ' , 1 );
36
+ }
37
+
33
38
/**
34
39
* Set include path
35
40
*/
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ You can override some defaults using environment variables defined in a file tha
50
50
- ` ADMIN_EMAIL `
51
51
- ` ADMIN_USERNAME `
52
52
- ` ADMIN_PASSWORD `
53
+ - ` MAGE_IS_DEVELOPER_MODE `
54
+ - Set to 1 by default, set to 0 to disable
53
55
54
56
Wiping
55
57
---
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ services:
11
11
environment :
12
12
- ENABLE_SENDMAIL=true
13
13
- XDEBUG_CONFIG=remote_connect_back=1 remote_enable=1 idekey=phpstorm
14
+ - MAGE_IS_DEVELOPER_MODE=1
14
15
links :
15
16
- mysql
16
17
Original file line number Diff line number Diff line change 61
61
62
62
#Varien_Profiler::enable();
63
63
64
- if (isset ($ _SERVER ['MAGE_IS_DEVELOPER_MODE ' ])) {
65
- Mage::setIsDeveloperMode (true );
66
- }
67
-
68
- #ini_set('display_errors', 1);
69
-
70
64
umask (0 );
71
65
72
66
/* Store or website code */
Original file line number Diff line number Diff line change @@ -54,12 +54,6 @@ require_once $mageFilename;
54
54
55
55
#Varien_Profiler::enable();
56
56
57
- if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
58
- Mage::setIsDeveloperMode(true);
59
- }
60
-
61
- #ini_set('display_errors', 1);
62
-
63
57
umask(0);
64
58
65
59
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';
You can’t perform that action at this time.
0 commit comments