Create upload
create_uploadSend an app that is on disk to spawnpoint, for deploy_project: the fast path when the app's files exist on disk (spawnpoint cannot read your disk), are more than a few small text files, or include images. Run the returned command with bash from the app's folder (it tars the folder and PUTs it in seconds), then call deploy_project with name, runtime, and the returned upload_id instead of files: the bytes travel over HTTP instead of through your context. The URL takes a gzipped tar, works exactly once, and expires in 30 minutes; a deploy_project refused before it starts (a bad name, a plan limit, a secret in the bundle) leaves the upload_id usable for the next try. An account holds at most three open uploads at a time (deploying one, or letting it expire, frees its slot), so reuse an upload URL you already have rather than minting another. Limits: uploads take bundles up to 20 MiB for an app that runs on a machine and 50 MiB for a static site (inline files in deploy_project are capped at 4 MiB per request, so this is the path for anything larger), and node_modules and .git must be excluded (dependencies install on the machine from package.json / requirements.txt).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| command | Yes | ||
| upload_id | Yes | ||
| upload_url | Yes |