decentral1se
3 years ago
No known key found for this signature in database
GPG Key ID: 3789458B3D0C410
1 changed files with
5 additions and
2 deletions
-
distribusi.go
|
@ -32,6 +32,9 @@ var Version string |
|
|
// Commit is the current commit of distribusi-go
|
|
|
// Commit is the current commit of distribusi-go
|
|
|
var Commit string |
|
|
var Commit string |
|
|
|
|
|
|
|
|
|
|
|
// port is the web server port
|
|
|
|
|
|
var port = ":3000" |
|
|
|
|
|
|
|
|
// exiftooInstalled tells us if the exiftool binary is installed or not.
|
|
|
// exiftooInstalled tells us if the exiftool binary is installed or not.
|
|
|
var exiftoolInstalled = true |
|
|
var exiftoolInstalled = true |
|
|
|
|
|
|
|
@ -650,9 +653,9 @@ func serveHTTP(fpath string) error { |
|
|
fs := http.FileServer(http.Dir(fpath)) |
|
|
fs := http.FileServer(http.Dir(fpath)) |
|
|
http.Handle("/", fs) |
|
|
http.Handle("/", fs) |
|
|
|
|
|
|
|
|
logrus.Info("distribusi live @ http://localhost:3000") |
|
|
logrus.Infof("distribusi live @ http://localhost%s", port) |
|
|
|
|
|
|
|
|
if err := http.ListenAndServe(":3000", nil); err != nil { |
|
|
if err := http.ListenAndServe(port, nil); err != nil { |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|