You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
734 B
Plaintext

build:
mdbook build
serve:
mdbook serve
deploy:
# Build the static site and upload it to Cloudflare Pages as a production deployment.
# Requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID to be set in the environment.
mdbook build
wrangler pages deploy book --project-name vibedbooks --branch main
infra-init:
# Initialise the OpenTofu working directory and download providers.
cd infra && tofu init
infra-plan:
# Preview infrastructure changes without applying them.
cd infra && tofu plan
infra-apply:
# Apply the OpenTofu configuration to Cloudflare.
# Requires TF_VAR_cloudflare_api_token, TF_VAR_cloudflare_account_id, TF_VAR_cloudflare_zone_id.
cd infra && tofu apply