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
after(function (done) { | |
mongoose.connection.db.dropDatabase(function () { | |
mongoose.connection.close(done); | |
}); | |
}); |
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
. | |
├── Gruntfile.js | |
├── Procfile | |
├── README.md | |
├── env.example | |
├── gist | |
├── hapi.json | |
├── lib | |
│ ├── api | |
│ │ └── entries |
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
. | |
├── Gruntfile.js | |
├── Procfile | |
├── README.md | |
├── design | |
│ ├── app.js | |
│ ├── assets | |
│ │ ├── images | |
│ │ │ ├── logo.png | |
│ │ │ └── map.jpg |
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
Pulling repository base | |
b750fe79269d: Error pulling image (ubuntu-quantl) from base, endpoint: https://cdn-registry-1.docker.io/v1/, Get https://cdn-registry-1.docker.io/v1/images/b750feb750fe79269d: Error pulling image (ubuntu-quantl) from base, Get https://cdn-registry-1.docker.io/v1/images/b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d582013/09/01 15:33:36 Internal server error: 404 trying to fetch remote history for basere.com, cloudflare.com, not cdn-registry-1.docker.io |
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 scrub (obj) { | |
for(var attr in obj) { | |
if(obj.hasOwnProperty(attr)) { | |
if (attr.charAt(1) === '_') { | |
obj[attr] = true; | |
} | |
} | |
} | |
return obj; |
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
router.set('json replacer', function (key, value) { | |
if (key.charAt(1) === '_') value = true; | |
return value; | |
}); |
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
var express = require('express'); | |
var server = express(); | |
server.use('/products', require('./products')) | |
server.listen(8080); |
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
var config = require(process.env.CONFIG); | |
var mandrill = require('node-mandrill')(config.development.mandrill); | |
module.exports = function (jobs) { | |
jobs.process('email', function (job, done) { | |
var user = job.data.user; | |
var response = job.data.response; | |
var campaign = job.data.campaign; |
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
// add s3: {key: '', secret: '', bucket: ''} to component.json | |
builder.use(s3); | |
function s3 (b) { | |
var s3Client; | |
Builder.prototype.copyTo = function (file, dest, done) { | |
var s3Dest = dest.replace(b.assetsDest,''); | |
s3Client = s3Client || knox.createClient(b.conf.s3) |
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
var s3 = require('knox'); | |
var Builder = require('component-builder') | |
var builder = new Builder(__dirname); | |
builder.addLookup('js'); | |
builder.copyAssetsTo('package'); | |
builder.build(function(err, res){ |