1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/backend/config/Config.ts

17 lines
499 B
TypeScript
Raw Normal View History

2016-05-26 15:44:13 +08:00
///<reference path="../../typings/index.d.ts"/>
2016-04-11 04:53:46 +08:00
import {ConfigLoader} from "./../../backend/config/ConfigLoader";
import * as path from "path";
import {ConfigClass, DatabaseType} from "../../common/config/Config";
2016-04-11 04:58:36 +08:00
export var Config = new ConfigClass();
2016-04-11 04:53:46 +08:00
Config.Server = {
port: 80,
imagesFolder: "/demo/images",
thumbnailFolder: "/demo/TEMP",
2016-06-17 06:05:31 +08:00
databaseType: DatabaseType.memory
};
2016-04-11 04:53:46 +08:00
ConfigLoader.init(Config, path.join(__dirname, './../../config.json'), [["PORT", "Server-port"]]);