Skip to content

Commit d9d98b2

Browse files
ianmacartneyConvex, Inc.
authored and
Convex, Inc.
committed
Update
GitOrigin-RevId: 5a708dc68bf96caf48b9cdc40ffb5f6cebb4a06e
1 parent a348998 commit d9d98b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

self-hosted/fly/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ Steps:
110110

111111
```sh
112112
cd <your-frontend-app-directory>
113-
npm install convex
113+
npm install convex@alpha
114114
```
115115

116116
To continuously deploy code for development:
117117

118118
```sh
119-
npx convex dev
119+
npx convex self-host dev
120120
```
121121

122122
This will continuously deploy your Convex functions as you edit them. It will
@@ -126,16 +126,16 @@ Steps:
126126
To deploy code once:
127127

128128
```sh
129-
npx convex deploy
129+
npx convex self-host deploy --env-file <path to env file>
130130
```
131131

132132
To deploy code to a different backend, you can pass the `--env-file` flag or
133133
set the self-hosted environment variables before calling `npx convex deploy`.
134134

135135
**Note:** It's up to you whether a backend is for development or production.
136136
There is no distinction within the instance. If you only have one backend,
137-
you can run `npx convex dev` or `npx convex deploy` depending on whether you
138-
want it to live-update or not.
137+
you can run `npx convex self-host dev` or `npx convex self-host deploy`
138+
depending on whether you want it to live-update or not.
139139

140140
An extension of this is that you can have many backends for staging or
141141
previews. The difference will be in the environment variables.

0 commit comments

Comments
 (0)