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
From the course: Learning Static Site Building with Jekyll
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Deploy via FTP overview2m 2s
-
(Locked)
Set up Node and npm1m 40s
-
(Locked)
Connect to the server7m 21s
-
(Locked)
Collect the local files4m 51s
-
(Locked)
Remove old files from the server5m 39s
-
(Locked)
Upload the site content2m 43s
-
(Locked)
Deploy via FTP with Travis CI3m 10s
-
(Locked)
FTP next steps1m 2s
-
(Locked)
-
-
-