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:
158e27c
)
add hack to fix current working directory on nodester
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 25 Jan 2012 19:53:32 +0000
(14:53 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 25 Jan 2012 19:53:32 +0000
(14:53 -0500)
server.coffee
patch
|
blob
|
history
diff --git
a/server.coffee
b/server.coffee
index
db252bd
..
b1cdac9
100644
(file)
--- a/
server.coffee
+++ b/
server.coffee
@@
-301,6
+301,11
@@
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'
+
setInterval expire_old_games, 2 * 60 * 1000 # check every 2 minutes for expired games
http_server.listen listen_port, "127.0.0.1"