Skip to content

Instantly share code, notes, and snippets.

View ariporad's full-sized avatar

Ari Porad ariporad

View GitHub Profile
var routes = ['/'];
app.routes.get.forEach(function(r) {
var parts = r.path.split("/");
console.log(parts);
console.log(parts.join("/")+"/");
parts= parts.slice(0,-1); // so we only do /thing1/a and not /thing1/b as well.
console.log(parts);
console.log(parts.join("/")+"/");
if(routes.indexOf(parts.join("/")+"/")<0&&"/"+parts.join("/")+"/" !=("///"||"//"||"/*/")){
@ariporad
ariporad / gist:4184830
Created December 1, 2012 20:32
jitsu output
Ari$ jitsu deploy
info: Welcome to Nodejitsu ari-porad
info: jitsu v0.11.0, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Skipping require-analyzer because noanalyze option is set
info: Skipping require-analyzer because noanalyze option is set
error: Error running command deploy
error: Unexpected token }
help: For help with this error contact Nodejitsu Support:
@ariporad
ariporad / output.txt
Created November 22, 2012 16:54
Nodejitsu Error
Ari$ jitsu deploy
info: Welcome to Nodejitsu ari-porad
info: jitsu v0.11.3, node v0.8.14
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in server.js
info: Checking app availability ArisGameBeta
error: Error running command deploy
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
@ariporad
ariporad / gist:3410157
Created August 21, 2012 01:02
Output-from-jitsu-error:400
Aris-MacBook-Pro:Ari Website Ari$ jitsu deploy
info: Welcome to Nodejitsu porad
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in server.js
warn: Local version appears to be old
warn: Your package.json version will be incremented for you automatically
warn: About to write /Users/Ari/Documents/Ari Website/package.json
data:
data: {