File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ _This release is scheduled to be released on 2024-01-01._
50
50
- Fix style issues after prettier update
51
51
- Fix calendar test (#3291 ) by moving "Exdate check" from e2e to electron to run on a Thursday
52
52
- Fix calendar config params ` fetchInterval ` and ` excludedEvents ` were never used from single calendar config (#3297 )
53
+ - Fix MM_PORT variable not used in electron and allow full path for MM_CONFIG_FILE variable (#3302 )
53
54
54
55
## [ 2.25.0] - 2023-10-01
55
56
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Log.log(`Starting MagicMirror: v${global.version}`);
25
25
global . root_path = path . resolve ( `${ __dirname } /../` ) ;
26
26
27
27
if ( process . env . MM_CONFIG_FILE ) {
28
- global . configuration_file = process . env . MM_CONFIG_FILE ;
28
+ global . configuration_file = process . env . MM_CONFIG_FILE . replace ( ` ${ global . root_path } /` , "" ) ;
29
29
}
30
30
31
31
// FIXME: Hotfix Pull Request
Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ function createWindow () {
79
79
}
80
80
81
81
let address = ( config . address === void 0 ) | ( config . address === "" ) | ( config . address === "0.0.0.0" ) ? ( config . address = "localhost" ) : config . address ;
82
- mainWindow . loadURL ( `${ prefix } ${ address } :${ config . port } ` ) ;
82
+ const port = process . env . MM_PORT || config . port ;
83
+ mainWindow . loadURL ( `${ prefix } ${ address } :${ port } ` ) ;
83
84
84
85
// Open the DevTools if run with "npm start dev"
85
86
if ( process . argv . includes ( "dev" ) ) {
You can’t perform that action at this time.
0 commit comments