core/gna.js
function(err) {
    if (
        process.argv[2] == '-s' && startWithGina
            || process.argv[2] == '--start' && startWithGina
            //Avoid -h, -v  ....
            || !startWithGina && isPath && process.argv.length > 3

        ) {
        if (isPath && !startWithGina) {
            console.log('You are trying to load gina by hand: just make sure that your env ['+env+'] matches the given path ['+ path +']');
        } else if ( typeof(err.stack) != 'undefined' ) {
            console.log('Gina could not determine which bundle to load: ' + err +' ['+env+']' + '\n' + err.stack);
        } else {
            console.log('Gina could not determine which bundle to load: ' + err +' ['+env+']');
        }
        process.exit(1);
    }
}
function(err) {
    if (
        process.argv[2] == '-s' && startWithGina
            || process.argv[2] == '--start' && startWithGina
            //Avoid -h, -v  ....
            || !startWithGina && isPath && process.argv.length > 3

        ) {
        if (isPath && !startWithGina) {
            console.log('You are trying to load gina by hand: just make sure that your env ['+env+'] matches the given path ['+ path +']');
        } else if ( typeof(err.stack) != 'undefined' ) {
            console.log('Gina could not determine which bundle to load: ' + err +' ['+env+']' + '\n' + err.stack);
        } else {
            console.log('Gina could not determine which bundle to load: ' + err +' ['+env+']');
        }
        process.exit(1);
    }
}
function ( err ) { if ( process . argv [ 2 ] == '-s' && startWithGina || process . argv [ 2 ] == '--start' && startWithGina //Avoid -h, -v  .... || ! startWithGina && isPath && process . argv . length > 3 ) { if ( isPath && ! startWithGina ) { console . log ( 'You are trying to load gina by hand: just make sure that your env [' + env + '] matches the given path [' + path + ']' ) ; } else if ( typeof ( err . stack ) != 'undefined' ) { console . log ( 'Gina could not determine which bundle to load: ' + err + ' [' + env + ']' + '\n' + err . stack ) ; } else { console . log ( 'Gina could not determine which bundle to load: ' + err + ' [' + env + ']' ) ; } process . exit ( 1 ) ; } }
Todo - load from env.json or locals  or project.json ??
Todo - load from env . json or locals or project . json ??