Learn how deploying to an FTP server works and whether it's a good choice for your project. Nate covers the information you need to gather in order to deploy via FTP.
- [Instructor] If you have an existing web server or web hosting plan that you'd like to host your static site on, deploying the FTP is a good choice. Publishing your static site to an FTP server is essentially the same as using an FTP client to manually copy the site files yourself. We'll automate this process using Travis CI. Here's how it'll work. When you make changes to your site files and push them up GitHub, Travis CI automatically runs a build script. We'll modify this build script to push the site content up to your FTP server so it can be served to your visitors.
You'll need to gather some information to get started. First, determine whether your web host supports SFTP, also known as secure FTP, or SSHFTP. This course uses SFTP because it's more secure than plain or unencrypted FTP. Your web server will need to support SFTP to follow these instructions. For some hosts, you'll need to turn this feature on in the hosting control panel. Next, you'll need to gather the SFTP connection information for your web server, the host or server name, the port, and your connection username and password.
If you need help finding this information, look at the documentation for your web server, or contact your hosting company. I'd recommend downloading the FileZilla tool to test the connection. This will ensure your connection information is correct, and it will let your browse the contents of your FTP server. Most servers have a public underscore HTML folder which is the base directory for the files that will be served to the public. This is where we'll copy the static site files during the deployment process. To perform the deployment, we'll write a deployment script that Travis will run right after it builds the site.
- Advantages of static sites
- Installing Hugo and Git
- Creating a new Hugo site
- Building a new website
- Adding posts, pages, and static content
- Publishing your static site
- Deploying via FTP, AWS, and Netlify
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 Hugo
3. Build a Website
4. Prepare for Publishing
5. Deploy via FTP
6. Deploy to AWS
7. Deploy with Netlify
- 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.