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