Changed port - TODO set this with a config file
This commit is contained in:
parent
95d56cbbe3
commit
41e2daf3e9
1 changed files with 5 additions and 4 deletions
9
main.go
9
main.go
|
|
@ -1,6 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"html/template"
|
"html/template"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
@ -12,12 +13,12 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
PORT = 61594
|
||||||
|
|
||||||
FILES_DIR = "files"
|
FILES_DIR = "files"
|
||||||
TEMPLATES_DIR = "templates"
|
TEMPLATES_DIR = "templates"
|
||||||
TIME_FORMAT = "Jan 2 2006 15:04:05"
|
TIME_FORMAT = "Jan 2 2006 15:04:05"
|
||||||
)
|
|
||||||
|
|
||||||
const (
|
|
||||||
POST_ICON = "/static/post.gif"
|
POST_ICON = "/static/post.gif"
|
||||||
FILE_ICON = "/static/file.gif"
|
FILE_ICON = "/static/file.gif"
|
||||||
)
|
)
|
||||||
|
|
@ -167,6 +168,6 @@ func main() {
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
log.Println("Serving on :8080")
|
log.Println("Serving on :", PORT)
|
||||||
http.ListenAndServe(":8080", nil)
|
http.ListenAndServe(fmt.Sprintf(":%d", PORT), nil)
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue