-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdeploy.js
More file actions
52 lines (46 loc) · 1.27 KB
/
deploy.js
File metadata and controls
52 lines (46 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
var util = require('mis-util');
var config = require('./config.ignore');
var options = {
sysname: config.sysname,
webname: config.webname,
connect: {
host: config.host,
user: config.name,
password: config.user
},
cron: {
user: config.cronname,
pass: config.cron
},
view_path: {
local: './view/',
remote: '/CUST/forms/'
},
parm_path: {
local: './build/'
},
usc_path: {
local: './uScript/'
}
};
var mis = util(options);
//deploy and compile the uscripts
mis.deploy.usc()
.then(function(scripts) {
mis.script.installcompile()
.then(function() {
return mis.script.compile(
scripts.filter(function(script) { return script.indexOf('inc_') < 0 }));
})
.then(mis.script.uninstallcompile);
});
//build and deploy the parmfiles
console.log('parms');
mis.parm.fromflatfile('parm/dx10.ignore')
.then(mis.parm.tofile.bind(mis, 'build/DX10.parm'))
.then(mis.parm.fromflatfile.bind(mis, 'parm/dx10entr.ignore'))
.then(mis.parm.tofile.bind(mis, 'build/DX10ENTR.parm'))
.then(mis.deploy.parm);
//deploy the resources
mis.deploy.dir('./Resources/', options.webname + 'our_images/', 'gif', true);
mis.deploy.dir('./Resources/oatmeal_tumbeasts/', options.webname + 'our_images/', 'png', true);