2016-05-11 03:33:58 +08:00
|
|
|
///<reference path="../../typings/main.d.ts"/>
|
2016-04-11 04:53:46 +08:00
|
|
|
|
2016-05-11 03:33:58 +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
|
|
|
|
2016-05-11 03:33:58 +08:00
|
|
|
export var Config = new ConfigClass();
|
2016-04-11 04:53:46 +08:00
|
|
|
|
2016-05-11 03:33:58 +08:00
|
|
|
Config.Server = {
|
|
|
|
port: 80,
|
|
|
|
thumbnailSizes: [200],
|
|
|
|
imagesFolder: "/demo/images",
|
|
|
|
thumbnailFolder: "/demo/TEMP",
|
|
|
|
databaseType: DatabaseType.mongoDB
|
|
|
|
};
|
2016-04-11 04:53:46 +08:00
|
|
|
|
2016-05-11 03:33:58 +08:00
|
|
|
ConfigLoader.init(Config, path.join(__dirname, './../../config.json'), [["PORT", "Server-port"]]);
|
|
|
|
|