File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,13 @@ const program = new Command("start");
10
10
program
11
11
. description ( "Start the server" )
12
12
. option ( "--dev" , "Development mode with hot module reloading" )
13
+ . option ( "--configPath <file>" , "config file path" )
13
14
. on ( "--help" , Utils . extraHelp )
14
15
. action ( function ( options ) {
16
+ if ( options . configPath !== undefined ) {
17
+ Config . configPath = options . configPath ;
18
+ }
19
+
15
20
initalizeConfig ( ) ;
16
21
17
22
const newLocal = "../server" ;
Original file line number Diff line number Diff line change @@ -135,15 +135,15 @@ class Config {
135
135
path . join ( __dirname , ".." , "defaults" , "config.js" )
136
136
) ) as ConfigType ;
137
137
#homePath = "" ;
138
+ configPath : string | undefined ;
138
139
networks : { [ name : string ] : TemplateNetwork } = this . parseNetworks ( ) ;
139
140
140
141
getHomePath ( ) {
141
142
return this . #homePath;
142
143
}
143
144
144
145
getConfigPath ( ) {
145
- return path . join ( this . #homePath, "config.js" ) ;
146
- // return "/etc/thelounge/config.js";
146
+ return this . configPath ?? path . join ( this . #homePath, "config.js" ) ;
147
147
}
148
148
149
149
getUserLogsPath ( ) {
You can’t perform that action at this time.
0 commit comments