You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEPLOY.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,10 +85,10 @@ Once the platform is running, use a **space alias** (goes through the API) for s
85
85
86
86
```bash
87
87
bun run build
88
-
ow <space> worker upload openworkers-api ./build
88
+
ow infra worker upload openworkers-api ./build
89
89
```
90
90
91
-
Where `<space>` is the target space (`dev`, `main`, `ps`, ...).
91
+
Where `infra` is the target space alias (could be `dev`, `main`, `local`, ...).
92
92
93
93
Create the environment **before** the first upload so the project inherits it automatically. If the worker was already uploaded without an environment, `worker link` will cascade it to the project and all function workers.
94
94
@@ -100,10 +100,10 @@ Secrets are prompted interactively (masked input) when value is omitted:
100
100
101
101
```bash
102
102
# Variables (plain text)
103
-
ow <space> env set openworkers-api-env APP_URL https://dash.example.com
103
+
ow infra env set openworkers-api-env APP_URL https://dash.example.com
104
104
105
105
# Secrets (prompted interactively, not stored in shell history)
106
-
ow <space> env set openworkers-api-env JWT_ACCESS_SECRET --secret
106
+
ow infra env set openworkers-api-env JWT_ACCESS_SECRET --secret
107
107
```
108
108
109
109
Bindings (`DATABASE`, `ASSETS`) are set with `ow infra env bind` during the initial setup (see step 5 above). They connect the worker to its database and assets storage at runtime.
@@ -133,17 +133,17 @@ In Docker mode, `POSTGATE_URL` and `POSTGATE_TOKEN` must be set in `.env` to con
133
133
Workers that are uploaded with multiple routes/functions are automatically promoted to **projects**. Projects group related workers.
134
134
135
135
```bash
136
-
ow <space> projects list # List all projects
137
-
ow <space> projects delete my-app # Delete project and all its workers
136
+
ow infra projects list # List all projects
137
+
ow infra projects delete my-app # Delete project and all its workers
138
138
```
139
139
140
140
To delete a worker that belongs to a project, delete the project instead:
141
141
142
142
```bash
143
143
# This fails:
144
-
ow <space> worker delete my-app
144
+
ow infra worker delete my-app
145
145
# → "Cannot delete main worker - delete the project instead"
0 commit comments