The simplest, cheapest, and most performant way to deploy your frontend.
What is a static service?
Applications created in ReleaseHub have one or more services. These services can be one of two types: A Docker service or a static service.
A Docker service is your standard service built using your Dockerfile. If you can run your service in a Docker container, we can run it in ReleaseHub. This service type is the most common. However, there are situations where running a service inside a container is not ideal due to cost, performance, or complexity. This is where ReleaseHub's static services step in.
Static service use case
These types of services are common and running them inside a full-blown Docker container usually isn't ideal. CDNs offer a plethora of advantages and it would be preferred for your assets to live inside a CDN instead of a Docker container.
Behind the scenes, ReleaseHub will analyze a selected branch in your repository and search for services that are eligible for static service deployment. A repository can have zero or more services that are eligible for this optimized deployment.
Why use static services
➕ Static assets are deployed to a CDN
➖ No container to control
➕ Smart cache invalidation
➖ Doesn't support server-side languages like PHP
➕ No dockerfile needed
➕ Minimizes cost, maximizes speed
➕ Out-of-the-box SSL
➕ Supports Isomorphic services*
How to use static asset deployment
When you create a new application using ReleaseHub's Create New Application process, you choose a repo and a directory. ReleaseHub then identifies if this repo contains services that are eligible for static service deployment. If ReleaseHub finds eligible services, you are given the option of deploying them the standard way through a container, or to utilize static service deployment.
If you choose to use static service deployment, then ReleaseHub only requires your build commands and your build directory. From there, ReleaseHub will handle the rest!
Adding environment variables
During Create New Application, in the Advanced section of the app creation process, you are given the opportunity to add Build Arguments and Static Service Environment Variables. Values placed here are shared between the Docker build process and the static services.