X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=server.coffee;h=7d8063c7be86f633a92d5918244c19d11501be21;hb=b1e502e556615044a56abbff26a58298d5680fbe;hp=04116575226fcdf7e2ea78d88b70790a0b890b5b;hpb=6c7d84c807fbc385902759c61517c738c390b690;p=peach-cgt.git 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