Skip to main content

Crate fn0_deploy

Crate fn0_deploy 

Source

Modules§

cli_login
cloudflare_provision
Provisioning a user’s Cloudflare account, on the user’s own machine.
credentials
env

Structs§

AdminRunOutput
CloudSetup
What the user chose and typed, carried between the steps of one setup.
CronJob
DomainOutcome
What the caller has to tell the user once the domain is registered.
ResolvedAppUrl
StaticFile

Enums§

CloudflareConnection
Whether a project has an account behind it. forte deploy refuses on this, because a project without one has nowhere to put its bundle or its assets.
DomainStatus
NameError

Constants§

MAX_PROJECT_NAME_LEN

Functions§

admin_run
collect_static_files
connect_with_own_credentials
The careful path, second half: credentials the user made themselves.
content_type_for
create_raw_bundle_forte
create_raw_bundle_wasm
delete_project
deploy_forte
deploy_wasm
ensure_project_id
expected_resources
Names the buckets a project’s credentials have to be scoped to, before those buckets exist. The careful path prints them so the user can pick the right scopes in the dashboard.
fetch_cloudflare_connection
fetch_domain_status
is_valid_project_name
provision_and_connect
The convenient path: one API Tokens -> Edit token. Provisions the account, mints the three credentials fn0 keeps, and hands them over.
provision_only
The careful path, first half: a token that can provision but cannot create tokens. Provisions and stops, so the caller can tell the user which three credentials to make by hand.
public_purge
Queues an edge invalidation for each key in the project’s public namespace. Returns the URLs that were queued.
read_env_yaml
rename_project
resolve_app_url
resolve_asset_base_url
set_domain
Points a project at a domain, replacing whatever it answered on before.
static_page_purge
Queues an edge invalidation for each cache_static page path. Returns the paths that were queued.
validate_project_name