Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-cgt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d27166
)
better way to get cwd right
author
Jason Woofenden
<jason@jasonwoof.com>
Fri, 27 Jan 2012 20:16:57 +0000
(15:16 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Fri, 27 Jan 2012 20:16:57 +0000
(15:16 -0500)
server.coffee
patch
|
blob
|
history
diff --git
a/server.coffee
b/server.coffee
index
0411657
..
7d8063c
100644
(file)
--- a/
server.coffee
+++ b/
server.coffee
@@
-302,9
+302,8
@@
http_server = http.createServer (req, res) ->
return html_handler url_parts.query, res, req, url_parts
################## INIT ####################
-# nodester starts this app with the current working directory set to / and working copy in /app
-if process.cwd() is '/'
- process.chdir '/app'
+# make sure the current working directory is correct
+process.chdir __dirname
setInterval expire_old_games, 2 * 60 * 1000 # check every 2 minutes for expired games