Thanks, Dave. I agree, and time willing, I will look further into what it would take to create a different interface. I just forked the project to give myself a sandbox (and potentially a way to offer pull requests).
Here are more details on the issues I had before I bumped the node version from 0.6.x to 0.8.x. The quoted parts are all excerpts rom the console output of running the command "jitsu deploy" (this is how Nodejitsu apps are deployed).
First, there were some warnings from dependencies that expected node 0.8. or greater. These were not fatal but they could be indicative of potential runtime problems:
npm WARN engine opmlp...@0.6.0: wanted: {"node":">= 0.8.0"} (current: {"node":"0.6.21","npm":"1.4.4"})
npm WARN engine feedp...@0.17.0: wanted: {"node":">= 0.8.0"} (current: {"node":"0.6.21","npm":"1.4.4"})
npm WARN engine form...@0.1.3: wanted: {"node":">= 0.8"} (current: {"node":"0.6.21","npm":"1.4.4"})
npm WARN engine http-si...@0.10.0: wanted: {"node":">=0.8"} (current: {"node":"0.6.21","npm":"1.4.4"})
npm WARN engine ha...@1.0.0: wanted: {"node":">=0.8.0"} (current: {"node":"0.6.21","npm":"1.4.4"})
npm WARN engine cryp...@0.2.2: wanted: {"node":">=0.8.0"} (current: {"node":"0.6.21","npm":"1.4.4"})
npm WARN engine sn...@0.2.4: wanted: {"node":">=0.8.0"} (current: {"node":"0.6.21","npm":"1.4.4"})
npm WARN engine bo...@0.4.2: wanted: {"node":">=0.8.0"} (current: {"node":"0.6.21","npm":"1.4.4"})
npm WARN engine ho...@0.9.1: wanted: {"node":">=0.8.0"} (current: {"node":"0.6.21","npm":"1.4.4"})
Second, and this was the showstopper:
error: Error running command deploy
error: Errors occured while starting the application
error: Error output from application. This is usually a user error.
error:
error: module.js:337
error: throw new Error("Cannot find module '" + request + "'");
error: ^
error: Error: Cannot find module 'domain'
error: at Function._resolveFilename (module.js:337:11)
error: at Function._load (module.js:279:25)
error: at Module.require (module.js:359:17)
error: at require (module.js:375:17)
error: at Object.nodeRequire (/opt/run/snapshot/package/node_modules/aws-sdk/lib/util.js:39:31)
error: at Object.<anonymous> (/opt/run/snapshot/package/node_modules/aws-sdk/lib/sequential_executor.js:2:23)
error: at Module._compile (module.js:446:26)
error: at Object..js (module.js:464:10)
error: at Module.load (module.js:353:31)
error: at Function._load (module.js:311:12)
error:
error: Error starting application. This could be a user error.
After some googling around, I got some hits that showed that people have run into this before in other contexts, and that the solution was to use node version 0.8.x or higher. So I made that change in package.json and it worked without further ado.
To make the information easier to find, I'll start a new topic to summarize the commands used to deploy on Nodejitsu, including setting environment variables.
- Dave