-
Notifications
You must be signed in to change notification settings - Fork 6
Environment Config
Derek Williamson edited this page Sep 12, 2019
·
1 revision
Locally, DnDTracker does not require a env.json
to be in the working directory of the app. However, the file is required in higher environments in order to connect to the database and deploy properly.
Current env.json structure:
{
"env":"local", // local, dev, and prod are valid.
"aws":{
"access_key":"", // securely stored in Travis CI
"secret_key":"" // securely stored in Travis CI
}
}
var envConfig = Singleton.Get<EnvironmentConfig>();
var name = envConfig.Current; // <-- See Environments.Local, Environments.Development, and Environments.Production