DEV Community

Discussion on: Deploy Rails static assets to CloudFront CDN - during Docker build time

Collapse
 
yerassyl profile image
Yerassyl Diyas

Thank you for this article. But I have a question: what happens if for some reason one of s3 sync commands fail, or say during upload 1 or 2 files were not uploaded? Can we catch such issues?

Collapse
 
reiz profile image
Robert Reiz

That's a good question. To be honest I didn't think about that one. I would assume that the aws cli retries/resumes and if that doesn't work I would assume that it exits with exit code 1 so that the whole build fails. But I did not really test it. What is your experience on that topic?