Last active
August 29, 2015 14:07
-
-
Save adamenger/5900ad70cda3b9c15ca9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function test(){ | |
ec2.describeInstances(params, function(err, data) { | |
if (err) console.log(err, err.stack); // an error occurred | |
else return data; // successful response | |
}); | |
} | |
app.get('/', function(req, res){ | |
var data = test() | |
console.log(data); | |
res.render('home', { data: data} ); | |
}); | |
var server = app.listen(3000, function() { | |
console.log('Listening on port %d', server.address().port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment