In this video, finish setting up automated deployment by connecting your Travis script to AWS. Learn how to push files to S3 and CloudFront whenever Travis detects a change.
- [Instructor] Now that you've set up S3,…CloudFront, and an Amazon IAM user,…you're ready to make the final touches…to the deployment script.…We'll do that in the .travis.yml file.…First, I need to move the bundle exec jekyll build line…up to the before_script section.…I'll just put that up here, - bundle exec jekyll build.…Now, in the script section, I'll add the commands…to push my build side files up to S3.…What that'll look like is aws s3 sync.…
We'll sync the public folder,…which is where our build side files are, public/.…And then we'll need to tell it…which S3 bucket to sync to, I'll do s3://.…In this case the bucket name is awesomestaticsites.com,…but in your case it'll be whatever you named your bucket.…Then we'll do --acl public -read,…and then --delete.…This command will sync all of our build side files…to S3 and delete any previous existing files…on that S3 bucket, so everything's fresh.…
Now we need to tell CloudFront…to create what's called an invalidation.…In other words, wipe out the CloudFront cache…
- Advantages of static sites
- Installing Jekyll and Git
- Creating a new Jekyll site
- Installing themes
- Adding posts, pages, and static content
- Setting up for deployment with GitHub, Travis CI, Node, and npm
- Deploying to FTP, AWS, and Netlify
- Adding a custom, secure domain
Skill Level Beginner
Amazon Web Services Essential Trainingwith Jeff Winesett5h 2m Intermediate
Amazon Web Services: Storage and Data Managementwith Brandon Rich3h 50m Intermediate
1. How Static Sites Work
2. Set Up Jekyll
3. Build a Website
4. Prepare for Publishing
5. Deploy via FTP
6. Deploy to AWS
7. Deploy with Netifly
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.