This commit is contained in:
Anton Kharitonov 2017-08-31 14:26:43 +02:00
Родитель e6dfb82d6b
Коммит fb81351e49
6 изменённых файлов: 29 добавлений и 23 удалений

5
manifest.yml Normal file
Просмотреть файл

@ -0,0 +1,5 @@
applications:
- name: cla-assistant-staging
services:
- cla-staging-env
- my-logs

Просмотреть файл

@ -38,7 +38,7 @@
"karma-mocha": "^1.1.1", "karma-mocha": "^1.1.1",
"memory-cache": "^0.1.6", "memory-cache": "^0.1.6",
"merge": "^1.2.0", "merge": "^1.2.0",
"mongoose": "^4.5.2", "mongoose": "^4.11",
"node-sass-middleware": "^0.10.0", "node-sass-middleware": "^0.10.0",
"passport": "^0.3.2", "passport": "^0.3.2",
"passport-accesstoken": "^0.1.0", "passport-accesstoken": "^0.1.0",
@ -80,7 +80,7 @@
"supertest": "2.0.1" "supertest": "2.0.1"
}, },
"engines": { "engines": {
"node": "6.10.3" "node": "7.10"
}, },
"scripts": { "scripts": {
"start": "node app.js", "start": "node app.js",

Просмотреть файл

@ -142,15 +142,13 @@ async.series([
var mongoose = require('mongoose'); var mongoose = require('mongoose');
mongoose.connect(config.server.mongodb.uri, { mongoose.connect(config.server.mongodb.uri, {
server: { useMongoClient: true,
socketOptions: { keepAlive: true
keepAlive: 1 }, (err, db) => {
} bootstrap('documents', callback);
}
}); });
global.models = {}; global.models = {};
bootstrap('documents', callback);
}, },
function (callback) { function (callback) {

Просмотреть файл

@ -11,7 +11,10 @@ var CLASchema = mongoose.Schema({
ownerId: String, ownerId: String,
repo: String, repo: String,
repoId: String, repoId: String,
org_cla: { type: Boolean, default: false }, org_cla: {
type: Boolean,
default: false
},
user: String, user: String,
userId: String, userId: String,
}); });