func runApp(args []string) { // TODO: Why can't it be any arbitrary string again? mode := rev.DEV if len(args) == 2 && args[1] == rev.PROD { mode = rev.PROD } // Find and parse app.conf rev.Init(args[0], mode) log.Printf("Running app (%s): %s (%s)\n", mode, rev.AppName, rev.BasePath) harness.Run(mode) }
func runApp(args []string) { if len(args) == 0 { errorf("~ No import path given.\nRun 'rev help run' for usage.\n") } // TODO: Why can't it be any arbitrary string again? mode := rev.DEV if len(args) == 2 && args[1] == rev.PROD { mode = rev.PROD } // Find and parse app.conf rev.Init(args[0], mode) log.Printf("Running app (%s): %s (%s)\n", mode, rev.AppName, rev.BasePath) harness.Run(mode) }