package main

import (
	"log"
	"net/http"
)

const VERSION = "0.1.0"

func main() {
	log.Printf("resolutionizerd %s starting...", VERSION)

	log.Fatalln(http.ListenAndServe(":8080", http.FileServer(http.Dir("./client"))))
}

package main

import (
	"flag"
	"log"
	"net/http"
	"os"
)

const VERSION = "0.1.0"

var clientDir string

func init() {
	flag.StringVar(&clientDir, "client", "./client", "the directory where the client data is stored")
}

func main() {
	log.Printf("resolutionizerd %s starting...", VERSION)

	log.Fatalln(http.ListenAndServe(":"+os.Getenv("PORT"), http.FileServer(http.Dir(clientDir))))
}

Add support for injecting the port and client dir.
Add support for injecting the port and client dir.
