From the course: Learning Static Site Building with Jekyll

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Deploy via FTP with Travis CI

Deploy via FTP with Travis CI

From the course: Learning Static Site Building with Jekyll

Start my 1-month free trial

Deploy via FTP with Travis CI

- [Instructor] To fully automate this deployment we need to run the new deploy script from the travis.yml file. Before we do that, however, I need to make a small change to the Jekyll configuration. Over in _config.yml, near the bottom of the file we have this block called exclude. Right now it's commented out. I'm going to select this whole block starting with the line that says exclude:, and then uncomment it using Visual Studio code shortcut control + /, or you could remove the hash sign + space in front of each line. This block explicitly tells Jekyll which files to ignore from the root of the project. I want to add a few more to this list. I'll start with package-lock.json, package.json, as well as deploy.js. Each one of these lines needs a dash in front of it and then a space. Alright, let's make sure that the built site files look correct. I'll do bundle exec jekyll build, and then I'll check the output directory. In my case it's called public, and we have folders and files for…

Contents