Skip to content

Instantly share code, notes, and snippets.

@sdanna
Created November 16, 2015 20:20

Revisions

  1. sdanna created this gist Nov 16, 2015.
    8 changes: 8 additions & 0 deletions global.asax.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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");
    }