Exemplo n.º 1
0
func init() {
	print("Starting test server with test users...\n")
	cloud.Populate()
	go cloud.Serve()
	time.Sleep(100 * time.Millisecond)
	print("Done.\n")
}
Exemplo n.º 2
0
func main() {
	flag.Parse()
	if *show_version {
		log.Print("Cloud version is " + cloud.Version)
		return
	}

	if *do_scan {
		if err := lux.CheckLux(); err != nil {
			log.Fatal("luxconsole seem to not exist or absent from PATH")
		}
		log.Print("Scanning mode at " + *storage_base)
		lux.WatchAndRender(*storage_base)
		return
	}
	log.Print("Port: " + *port)
	log.Print("Data: ", *storage_base)
	log.Print("Static: " + *ui_base)
	cloud.Configure(*storage_base) // Test users
	cloud.Serve(*port, *ui_base)
}
Exemplo n.º 3
0
func main() {
	print("API enabled @ port 8080\n")
	cloud.Populate() // Test users
	cloud.Serve()
}