Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View kwhitley's full-sized avatar

Kevin R. Whitley kwhitley

View GitHub Profile
@kwhitley
kwhitley / gist:6384138
Created August 29, 2013 22:23
How to best hydrate a relational sql dump? Ideally with unknown tables and unknown columns. Notice school_provider_program.id is even mapped to school.programs.id in the results...
/**
* Module dependencies
*/
var express = require('express');
var app = module.exports = express();
var Knex = require('knex');
var _ = require('lodash');
if ('development' === app.get('env')) {
@kwhitley
kwhitley / gist:6157664
Created August 5, 2013 17:17
Jitsu deploy issue - 500 with timeout set to 1000000
info: Creating snapshot 0.0.1-36
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: ETIMEDOUT
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
help: irc: <irc://chat.freenode.net/#nodejitsu>
help: email: <support@nodejitsu.com>
help:
@kwhitley
kwhitley / gist:6157307
Created August 5, 2013 16:28
Node deployment issue: 05 Aug, 2013
info: Creating snapshot 0.0.1-35
info Uploading: [=============================] 100%
error: Error running command deploy
error: ETIMEDOUT
info: jitsu's client request timed out before the server could respond. Please increase your client timeout
help: (Example: `jitsu config set timeout 100000`)
help: This error may be due to network connection problems
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
help: irc: <irc://chat.freenode.net/#nodejitsu>
info: Updating app kgallery
info: Activating snapshot 0.0.1-138 for kgallery
info: Starting app kgallery
error: Error running command deploy
error: Errors occured while starting the application
error: Error starting application. This could be a user error.
error: info: Running start for app.
error: info: Cleaning /opt/run
error: info: Fetching application snapshot...
error: info: Application snapshot fetched.