1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 07:10:05 +02:00
copilot/packages/portal-api/bootstrap-data.js

18 lines
439 B
JavaScript
Raw Normal View History

2017-05-03 22:48:15 +03:00
'use strict';
const Data = require('./lib/data');
const Examples = require('./lib/models/examples');
const data = new Data();
data.connect(() => {
data.createDeployment(Examples.deployment).then((deployment) => {
data.createManifest(deployment.id, Examples.manifest).then((manifest) => {
console.log('deployment with manifest created');
process.exit(0);
});
}).catch((err) => {
console.error(err);
});
});