Just Write Click

Technical writing with Continuous Integration and docs-as-code

  • JustWriteClick
  • Contact
  • Books by Anne Gentle
  • Introducing Docs Like Code
You are here: Home / techpubs / Discovery time: How to practice deploying a site with server automation

September 19, 2021 by annegentle

Discovery time: How to practice deploying a site with server automation

Discovery time: How to practice deploying a site with server automation

When you treat docs like code, you want to deploy that “code” to a web site. In our case, these code source files are doc source files. We want to see how something like a documentation site looks on a web site with a static site generator (SSG) like Jekyll. I had been practicing these deployment techniques while working on OpenStack, which offers open source cloud computing services. I needed to practice so I could get better, and also practice was the best way to learn this type of technical problem-solving—by doing. You could try these same techniques by deploying a site yourself.

Outline of overall deployment steps

The way I approached the practice effort was to:

  1. Find credentials for a cloud (or two). AWS, Google Cloud Platform, Azure, Oracle Cloud Infrastructure, or IBM Cloud are all viable options in 2021. 
  2. Determine which web services to install on the cloud servers to launch there.
  3. Find deployment orchestration templates that launch the right combination of web services to make the site, deploying Ruby, Jekyll, and NGINX, using Ansible.
  4. Test, test, test. Test some more.
  5. Try out Docker locally, then get the cloud server working. This step took a while while I worked out the Linux user permissions needed for installing Ruby with the compatible version needed. Ruby environments can be worked out though and in the end I triumphed. 
  6. Set up the cloud server as a git remote, then push the website to the git remote, building the HTML and copying the files to the web server. In a way, it’s a small implementation of GitHub Pages I suppose.


Discussion about the adventure

Hear me talk about my excitement trying out docs deployment in this video clip from the original on thenewstack.io. In it, I talk to Alex Williams, founder of TheNewStack.io, about my adventures at the OpenStack Summit in Barcelona. Thanks to Alex for the permission to re-post and for asking about my latest work.

Resources

Deploying Apps on OpenStack, Things we found while playing around is the title of talk. The deck is available on Slideshare at http://www.slideshare.net/annegentle/deploying-apps-on-openstack.

Ansible code example

The Ansible code is on GitHub. The YAML file is fairly straightforward, though the tricky parts were in the user permissions.

---
 
  - hosts: jekyll
 
    remote_user: cloud-user
 
become: yes
 
become_method: sudo
 
roles:
 
- common
 
- nginx
 
- git
 
- jekyll

Jekyll theme: so-simple

The Jekyll theme, so-simple, is on GitHub. I love the simple design and readability of this theme. It also has built-in search capabilities.

Content repository

The content repo is on GitHub. This contains the content for the web site or documentation site. 

Video demo

This video demo shows pushing the site to the git remote to update the content.

Looking back on this now, I realize it’s fairly simple, but when you want to discover how something works, sometimes it is best to make a simple prototype. Then you can understand more complex deployments as you continue on your discovery path.

Related

Filed Under: techpubs, tools, writing Tagged With: automation, cloud, deploy, docs as code

More reading

Bubble graph showing sources of developer support data

I’ve been thinking a lot about developer support at Cisco recently, especially for the way the world works today with multiple cloud providers. This post is a re-publish of my talk from over five years ago, but the techniques and tools for listening and helping others are still true today. At Rackspace, we watched several […]

Cisco DevNet is our developer program for outreach, education, and tools for developers at Cisco. From the beginning, the team has had a vision for how to run a developer program. Customers are first, and the team implements what Cisco customers need for automation, configuration, and deployment of our various offerings. Plus, the DevNet team […]

I had a great talk with Ellis Pratt of Cherryleaf Technical Writing consulting last week. Here are the show notes, full of links to all the topics we covered. Podcasts are great fun to listen to and participate in, if a bit nerve-wracking to think on your feet and make sure you answer questions succinctly […]

At the beginning of this year, I worked hard to summarize my thoughts on API documentation, continuous publishing, and technical accuracy for developer documentation. The result is an article on InfoQ.com, edited by Deepak Nadig, who also was forward-thinking in having me speak to a few teams at Intuit about API documentation coupled with code. Always […]

Recently on Just Write Click

  • A Flight of Static Site Generators: Sampling the Best for Documentation
  • Try a GPT about “Docs Like Code” to ask questions
  • Discipline and Diplomacy: Docs in the Open
  • Let’s Find Out: When Do Static Site Generators Do Rendering?
  • GitHub for Managing Tech Docs

Just Write Click in your Inbox

Enter your email address to subscribe to Just Write Click and receive notifications of new posts by email.

Read More

  • Privacy Policy
  • About Anne Gentle, developer experience expert
  • Books by Anne Gentle
    • Conversation and Community
    • Docs Like Code, a Book for Developers and Tech Writers
  • Woman in Tech Speaker Profile
  • Contact

Books

  • JustWriteClick
  • Contact
  • Books by Anne Gentle
  • Introducing Docs Like Code

Copyright © 2025 · WordPress · Log in