generated from ExamProCo/aws-bootcamp-cruddur-2023
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
31 lines (30 loc) · 938 Bytes
/
Rakefile
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
require 'aws_s3_website_sync'
require 'dotenv'
task :sync do
puts "sync =="
AwsS3WebsiteSync::Runner.run(
aws_access_key_id: ENV["AWS_ACCESS_KEY_ID"],
aws_secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"],
aws_default_region: ENV["AWS_DEFAULT_REGION"],
s3_bucket: ENV["S3_BUCKET"],
distribution_id: ENV["CLOUDFRONT_DISTRUBTION_ID"],
build_dir: ENV["BUILD_DIR"],
output_changset_path: ENV["OUTPUT_CHANGESET_PATH"],
auto_approve: ENV["AUTO_APPROVE"],
silent: "ignore,no_change",
ignore_files: [
'stylesheets/index',
'android-chrome-192x192.png',
'android-chrome-256x256.png',
'apple-touch-icon-precomposed.png',
'apple-touch-icon.png',
'site.webmanifest',
'error.html',
'favicon-16x16.png',
'favicon-32x32.png',
'favicon.ico',
'robots.txt',
'safari-pinned-tab.svg'
]
)
end