Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            //always clear the database on startup
            //Handler.db.Initialize();              //Only run this if you want to reset the database//
            Handler.db.printAccountTables();        //Print the users in the database inside the Accounts table
            Handler.db.printCommentTables();
            var srv = new BlueberryPie.Server <Handler>(port: 9888, staticFileDir: "..\\..\\..\\html");

            srv.Start();
        }
Ejemplo n.º 2
0
        static public void Main()
        {
            var str = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);

            if (str.StartsWith("file:"))
            {
                str = str.Substring(6);
            }
            Directory.SetCurrentDirectory(str);
            srv = new BlueberryPie.Server <Handler>(port: 9888, staticFileDir: "../../html");
            srv.StartInBackground();
            Console.WriteLine("Server Started");
        }