Skip to content

Packaging

When we want to package up the application for distribution, we have to ensure we're including the static files. I recommend simply constructing a ZIP file to do the job for you:

1
zip -r httpcats.zip httpcats static

This will produce a ZIP file called httpcats.zip which will include the httpcats binary (from our compilation command above: go build -v -o "httpcats") and the static/ directory, which obviously includes all of our HTML, CSS and images.

With this ZIP file we can then distribute the application to our servers, unzip it, and run it. We'll be doing that later on however, in the form of a Continuous Delivery (CD) pipeline.


Last update: August 25, 2021