I'm quite a novice when it comes to compound/node/mvc and had just finished developing my first app in development. After this, I copied the files over to my server and ran npm install as well as installing compoundjs globally and coffee-script globally. Once I finished doing this and ran
pi@raspberrypi ~/website $ NODE_ENV=production compound db migrate
/usr/local/lib/node_modules/compoundjs/node_modules/coffee-script/lib/coffee-script/coffee-script.js:195
throw new Error("Use CoffeeScript.register() or require the coffee-s
^
Error: Use CoffeeScript.register() or require the coffee-script/register module to require .coffee.md files.
at Object._base.(anonymous function) [as .coffee] (/usr/local/lib/node_modules/compoundjs/node_modules/coffee-script/lib/coffee-script/coffee-script.js:195:17)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/compoundjs/bin/compound:11:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
So I tried just copying all the files in the node_modules folder of the application to my server, still got the same problem. Next I tried making sure the version of compoundjs and coffee-script that I installed globally were the same as the ones installed globally on my development machine, still, same problem. I would be very thankful if anyone knows what I am doing wrong.