JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
set working directory in js wrapper script
[peach-cgt.git] / server.js
index 251f95a..f00e003 100644 (file)
--- a/server.js
+++ b/server.js
@@ -1,2 +1,8 @@
+// wrapper to run server.coffee (nodester has trouble starting coffeescript directly)
+
 var cs = require('coffee-script');
+
+// make sure the working directory is where this script is
+process.chdir(__dirname);
+
 require('./server.coffee');