X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-cgt.git;a=blobdiff_plain;f=server.coffee;fp=server.coffee;h=7d8063c7be86f633a92d5918244c19d11501be21;hp=04116575226fcdf7e2ea78d88b70790a0b890b5b;hb=2f937ffd72c313f94b5b0fc6c8817391df32b8dc;hpb=1d271667bd78151078957e2a06a9ac264de43386 diff --git a/server.coffee b/server.coffee index 0411657..7d8063c 100644 --- 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