The deploy script needs a list of files and folders to upload to your FTP server. Nate explains the code you need to write to gather this list of local items.
- [Instructor] After connecting to the server,…the first thing the deploy script needs to do…is collect a list of all the generated site files…and directories that need to be uploaded to the server.…We'll do that in the scan local files function.…Instead of returning an empty array,…now we can start fleshing this out.…Let's say…we'll say the local public directory…equals upath.join…joining the path process.cwd,…which is current working directory.…
Basically where we are right now,…plus the public folder, which is where…we know the site files will be generated to.…Then we need to return a glob…and we'll use the back ticks instead of quotes here…to do string interpolation and node…which means we can do this.…Local public dir forward slash star star…forward slash star, which is a syntax that means…get me everything, every file and folder recursively…underneath the public folder.…
Then after that comes back, we'll get a bunch of matches.…We'll call those glob matches.…And open up some code, a code block to deal with that.…
- 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.