Skip to content

Instantly share code, notes, and snippets.

@sdanna
Created November 16, 2015 20:20
Show Gist options
  • Save sdanna/65975e612eef3226d0c0 to your computer and use it in GitHub Desktop.
Save sdanna/65975e612eef3226d0c0 to your computer and use it in GitHub Desktop.
protected void Application_Start()
{
// Standard MVC Stuff goes here.
// Load config-r configuration file based on the environment appSetting
var environment = ConfigurationManager.AppSettings["Server.EnvironmentName"];
Config.Global.LoadScriptFile($"Web.{environment}.csx");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment