Beispiel #1
0
        static void Main()
        {
            var sentryKey = AppConfig.GetConfiguration("external:sentry:key");
            var sentryId  = AppConfig.GetConfiguration("external:sentry:id");

            var hostUri = AppConfig.GetConfiguration("server:host_uri") ?? "http://*****:*****@sentry.io/{sentryId}")) {
                var host = new NancyHost(new Bootstrapper(), new Uri(hostUri));

                AppBoot.Boot();

                Console.WriteLine("Server version: " + Assembly.GetExecutingAssembly().GetName().Version);
                Console.WriteLine("Starting server");
                Console.WriteLine("Starting server...");
                host.Start();
                Console.WriteLine("Server started");

                Cli.CliLoop(CommandsList.Get());
            }
        }