Browse Source

Removed leftover files

luis 6 years ago
parent
commit
24bd28685e
2 changed files with 1 additions and 47 deletions
  1. 1 1
      frontend/.eslintrc.js
  2. 0 46
      go/src/goreact/cmd/goreact/main.go

+ 1 - 1
frontend/.eslintrc.js

@@ -18,7 +18,7 @@ module.exports = {
     "rules": {
         "indent": [
             "error",
-            4
+            2
         ],
         "linebreak-style": [
             "error",

+ 0 - 46
go/src/goreact/cmd/goreact/main.go

@@ -1,46 +0,0 @@
-//  
-
-
-package main
-
-import (
-	"log"
-	"net/http"
-	"net/http/httputil"
-	"net/url"
-	"os"
-
-	"github.com/gohxs/prettylog"
-	"github.com/gohxs/webu"
-)
-
-func main() {
-	prettylog.Global()
-
-	mux := http.NewServeMux()
-
-	var assetHandler http.Handler
-	if os.Getenv("DEBUG") == "1" {
-		//log.Println("DEBUG MODE: reverse proxy localhost:8081")
-		proxyURL, err := url.Parse("http://localhost:8080")
-		if err != nil {
-			log.Fatal(err)
-		}
-
-		rp := httputil.NewSingleHostReverseProxy(proxyURL)
-		rp.ErrorLog = prettylog.New("rproxy")
-		assetHandler = rp
-	} else {
-		// Check folder web?
-		assetHandler = webu.StaticHandler("web", "index.html")
-		//staticHandler = flowuiassets.AssetHandleFunc
-	}
-
-	// Reverse proxy
-	//
-	mux.Handle("/", assetHandler)
-
-	log.Println("Listening at port: :2000")
-
-	http.ListenAndServe(":2000", mux)
-}