public static void Main(string[] args) { Templating.BaseUri = "/app/"; LogManager.LogFactory = new ConsoleLogFactory(); Settings.Load(); var appHost = new MustachedOctoRobot.HostService(); string localBinding = "http://*:8080/"; appHost.Init(); appHost.Start(localBinding); ("\n\nListening on " + localBinding + "..").Print(); Process process = new Process(); process.StartInfo.FileName = "firefox"; process.StartInfo.WorkingDirectory = System.IO.Directory.GetCurrentDirectory(); process.StartInfo.Arguments = "\"" + localBinding + "app\""; //process.Start(); Console.ReadKey(); //process.Kill (); }
public static void Main(string[] args) { Templating.BaseUri = "/app/"; LogManager.LogFactory = new ConsoleLogFactory (); Settings.Load (); var appHost = new MustachedOctoRobot.HostService (); string localBinding = "http://*:8080/"; appHost.Init (); appHost.Start (localBinding); ("\n\nListening on "+ localBinding + "..").Print (); Process process = new Process(); process.StartInfo.FileName = "firefox"; process.StartInfo.WorkingDirectory = System.IO.Directory.GetCurrentDirectory(); process.StartInfo.Arguments = "\"" + localBinding + "app\""; //process.Start(); Console.ReadKey(); //process.Kill (); }