Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-09 13:49:53 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-02-09 13:49:53 +0300
commit78de2cf5af7ba799590ec2c02c80276818d1aa36 (patch)
tree8b5a7cd3bbf183aec7f77b9ff94f61f3ce75624c /main.go
parentc45603a62842da51f241b61d25c4d4947d7a2652 (diff)
Add Makefile with version
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index 5e5c6a90..2f49f65d 100644
--- a/main.go
+++ b/main.go
@@ -10,6 +10,9 @@ import (
"sync"
)
+var VERSION = "dev"
+var REVISION = "HEAD"
+
var listenHTTP = flag.String("listen-http", ":80", "The address to listen for HTTP requests")
var listenHTTPS = flag.String("listen-https", "", "The address to listen for HTTPS requests")
var pagesDomain = flag.String("pages-domain", "gitlab-example.com", "The domain to serve static pages")
@@ -73,6 +76,9 @@ func main() {
var wg sync.WaitGroup
var app theApp
+ fmt.Println("GitLab Pages Daemon %s (%s)", VERSION, REVISION)
+ fmt.Println("URL: https://gitlab.com/gitlab-org/gitlab-pages")
+
flag.Parse()
// Listen for HTTP