Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

oops

  • Loading branch information...
commit 20aa8314e25b46f23dbd1c19d63e0a7852ad090d 1 parent 9b0c746
@gerad gerad authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  controllers/index.coffee
  2. +1 −1  deploy.conf
View
2  controllers/index.coffee
@@ -51,7 +51,7 @@ app.get '/now', (req, res) ->
#res.send Date.UTC(2012, 10, 10, 0, 59, 55).toString() # go!
#res.send Date.UTC(2012, 10, 8, 23, 59, 55).toString() # 1 -> 0 days left
-app.get '/reload', (req, res) ->
+app.get '/reload', (req, res, next) ->
# only allow this to be called from localhost
return next(401) unless req.connection.remoteAddress is '127.0.0.1'
app.ws?.sockets.emit 'reload'
View
2  deploy.conf
@@ -6,4 +6,4 @@ repo git@github.com:nko3/website.git
ref origin/master
path /home/app/nko3
post-deploy npm install --mongodb:native && sudo restart node
-test sleep 5 && curl -s localhost/reload >/dev/null
+test sleep 5 && curl localhost/reload >/dev/null
Please sign in to comment.
Something went wrong with that request. Please try again.