Protected dataStatic Readonly TemplateStatic Private _rootProtected initializeProtected loadProtected templateProtected templatizeStatic rootChange application root. Application root is equal process.cwd() by default
FileConfig.root('/www/my-app/');
container.bind<IConfig>(Types.Config)
.to(FileConfig.root('/www/my-app/'))
.inSingletonScope();
Description
Module for configuring the application using files, extends Config base class.
Features:
How to use:
In cwd of you app, near package.json, create 2 files:
Example