Add Dockerfile
- Add Docker image - Fix whitespace location in the footer when version is not provided - Add log message when the server is about to start Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
d9c6d7905f
commit
4b75edc754
3 changed files with 19 additions and 2 deletions
|
@ -347,5 +347,6 @@ func (s *Server) Start() error {
|
|||
r.Path("/").Handler(&HomeHandler{Templates: templates, PageData: p}).Methods("GET")
|
||||
|
||||
addr := fmt.Sprintf("%s:%d", s.config.ListenAddress, s.config.ListenPort)
|
||||
s.logger.Info(fmt.Sprintf("listening to %s:%d", s.config.ListenAddress, s.config.ListenPort))
|
||||
return http.ListenAndServe(addr, r)
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{define "footer"}}
|
||||
<footer class="text-center">
|
||||
<small>Powered by <a href="https://git.riou.xyz/jriou/coller">coller</a> {{if ne .Version ``}}({{.Version}}){{end}}</small>
|
||||
<small>Powered by <a href="https://git.riou.xyz/jriou/coller">coller</a>{{if ne .Version ``}} ({{.Version}}){{end}}</small>
|
||||
</footer>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue