diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-07-17 13:45:46 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-07-17 13:45:46 (GMT) |
commit | 14635c80ffdc96f43cace13cdfcb86e4816fa0ab (patch) | |
tree | 64e4841bbcb416024afc4ea26f5017405014b814 | |
parent | 93d7a18c1a1eb4d69fa70e4f188d6fd375e785ba (diff) |
some martini related cleanup
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | debian/rhrdtime.service | 1 | ||||
-rw-r--r-- | src/helsinki.at/rhrdtime/rhrdtime.go | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -27,7 +27,7 @@ GOCMD := go getlibs: export GOPATH=$(curdir) getlibs: - $(GOCMD) get "github.com/codegangsta/martini" + $(GOCMD) get "github.com/go-martini/martini" $(GOCMD) get "github.com/gorilla/websocket" $(GOCMD) get "github.com/tuxychandru/pubsub" diff --git a/debian/rhrdtime.service b/debian/rhrdtime.service index 0d4658e..bfffdee 100644 --- a/debian/rhrdtime.service +++ b/debian/rhrdtime.service @@ -4,6 +4,7 @@ Description=Radio Helsinki Rivendell Time Websocket Server [Service] User=rhrdtime Group=rhrdtime +Environment="MARTINI_ENV=production" ExecStart=/usr/bin/rhrdtime Restart=always RestartSec=1s diff --git a/src/helsinki.at/rhrdtime/rhrdtime.go b/src/helsinki.at/rhrdtime/rhrdtime.go index 692882b..6677e97 100644 --- a/src/helsinki.at/rhrdtime/rhrdtime.go +++ b/src/helsinki.at/rhrdtime/rhrdtime.go @@ -32,7 +32,7 @@ import ( "net/http" "encoding/json" - "github.com/codegangsta/martini" + "github.com/go-martini/martini" "github.com/gorilla/websocket" "github.com/tuxychandru/pubsub" ) |