Skip to content

Commit 20aa831

Browse files
author
Gerad Suyderhoud
committed
oops
1 parent 9b0c746 commit 20aa831

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/index.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ app.get '/now', (req, res) ->
5151
#res.send Date.UTC(2012, 10, 10, 0, 59, 55).toString() # go!
5252
#res.send Date.UTC(2012, 10, 8, 23, 59, 55).toString() # 1 -> 0 days left
5353

54-
app.get '/reload', (req, res) ->
54+
app.get '/reload', (req, res, next) ->
5555
# only allow this to be called from localhost
5656
return next(401) unless req.connection.remoteAddress is '127.0.0.1'
5757
app.ws?.sockets.emit 'reload'

deploy.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ repo [email protected]:nko3/website.git
66
ref origin/master
77
path /home/app/nko3
88
post-deploy npm install --mongodb:native && sudo restart node
9-
test sleep 5 && curl -s localhost/reload >/dev/null
9+
test sleep 5 && curl localhost/reload >/dev/null

0 commit comments

Comments
 (0)