Application Sub Type: Static
An application always has a type of app
, and a sub_type. These docs are for the static
sub_type.
Contents
Config file structure
A static
application is one that does not have dynamic content (or whose dynamic content can be statically compiled). Static apps are frontend apps that do not need a server or any other compute resources to run.
The following fields are available for a static
application:
name | type | default | required |
---|---|---|---|
type | string | always app | true |
sub_type | string | always static | true |
name | string | same as resource_label | false |
sub_domain | string | The sub_domain you want your application served at | false |
environments | list/slice | none | true |
environments
A list of objects, where each object has the following available fields
Field name | Field type | Default value | Required |
---|---|---|---|
environment | string; the resource_label for the environment | none | true |
group | string; the resource_label for the group the environment belongs to | none | true |
cloudflare_domain_names | list/slice; Fully qualified cloudflare domain names to use for your app environment. Any domain here MUST also be declared in the environment config you plan to deploy to. Must also have a Cloudflare api key saved to DragonOps.* | none | false |
route53_domain_names | list/slice; Fully qualified route53 domain names (other than the default DragonOps domain we provide) to use for your app environment. Any domain here MUST also be declared in the environment config you plan to deploy to. | none | false |
Full Example
Here is a full example of a static
application config file.
my_app:
name: my-app
type: app
sub_type: static
environments:
- environment: dev_environment
group: preprod_group
cloudflare_domain_names:
- my-dev-app.mycloudflaredomain.com
- environment: stage_environment
group: preprod_group
cloudflare_domain_names:
- my-stage-app.mycloudflaredomain.com