From 7b4f3211aa7c85e88f63feec8605c8d7c7fe3bed Mon Sep 17 00:00:00 2001 From: Enrique Esquinas Date: Sun, 27 Dec 2015 03:15:24 +0100 Subject: [PATCH] Fixing to run with CoffeeScript@1.7+ As it was, this error raised: `Error: Use CoffeeScript.register() or require the coffee-script/register module to require .coffee.md files.` GitHub user Maxtaco pointed out the [solution to the error here](https://github.com/maxtaco/coffee-script/issues/138) I quote "This changed a while back with CoffeeScript@1.7.0. Check the main Coffee page, and here's the explanation: - When requiring CoffeeScript files in Node you must now explicitly register the compiler. This can be done with require 'coffee-script/register' ..." --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index b21e22b..4e22a15 100644 --- a/server.js +++ b/server.js @@ -1,4 +1,4 @@ require("coffee-script"); - +require("coffee-script/register") var app = require("./app"); -app.listen(process.env.C9_PORT); \ No newline at end of file +app.listen(process.env.C9_PORT);