forked from sb2702/free-ai-video-upscaler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
64 lines (48 loc) · 1.39 KB
/
Gruntfile.js
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
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-aws-s3');
grunt.loadNpmTasks('grunt-cloudfront');
grunt.initConfig({
aws_s3: {
options: {
accessKeyId: process.env.AWS_KEY_PERSONAL,
secretAccessKey: process.env.AWS_SECRET_PERSONAL,
region: 'us-east-1',
uploadConcurrency: 5, // 5 simultaneous uploads
downloadConcurrency: 5 // 5 simultaneous downloads
},
production: {
options: {
bucket: 'free.upscaler.video',
differential: true // Only uploads the files that have changed
},
files: [
{expand: true,
cwd: 'dist/',
src: ['**', '!*~'],
dest: '/'}
]
},
},
cloudfront: {
options: {
region:'us-east-1', // your AWS region
distributionId:"E1PI5O74ZD5EVI", // DistributionID where files are stored
listInvalidations:true, // if you want to see the status of invalidations
listDistributions:false, // if you want to see your distributions list in the console
version:"1.0", // if you want to invalidate a specific version (file-1.0.js),
credentials: {
accessKeyId: process.env.AWS_KEY_PERSONAL,
secretAccessKey: process.env.AWS_SECRET_PERSONAL,
}
},
production: {
CallerReference: Date.now().toString(),
Paths: {
Quantity: 1,
Items: [ '/*' ]
}
},
},
});
grunt.registerTask('push', ['aws_s3:production', 'cloudfront:production']);
};