File tree Expand file tree Collapse file tree
application/src/main/java/org/togetherjava/tjbot Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ private Application() {
3636 }
3737
3838 private static final Logger logger = LoggerFactory .getLogger (Application .class );
39- private static final String DEFAULT_CONFIG_PATH = "config.json" ;
39+ private static final String DEFAULT_CONFIG_PATH_DISK = "config.json" ;
40+ private static final String DEFAULT_CONFIG_PATH_RESOURCES = "/config.json" ;
4041 private static final String DEFAULT_SECRETS_PATH = "secrets.json" ;
4142
4243 /**
@@ -64,9 +65,9 @@ public static void main(final String[] args) {
6465 if (args .length > 0 ) {
6566 configPath = args [0 ];
6667 } else if (useIncludedConfig ) {
67- configPath = "/" + DEFAULT_CONFIG_PATH ;
68+ configPath = DEFAULT_CONFIG_PATH_RESOURCES ;
6869 } else {
69- configPath = DEFAULT_CONFIG_PATH ;
70+ configPath = DEFAULT_CONFIG_PATH_DISK ;
7071 }
7172
7273 Config config ;
You can’t perform that action at this time.
0 commit comments