File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ Steps:
110
110
111
111
``` sh
112
112
cd < your-frontend-app-directory>
113
- npm install convex
113
+ npm install convex@alpha
114
114
```
115
115
116
116
To continuously deploy code for development:
117
117
118
118
``` sh
119
- npx convex dev
119
+ npx convex self-host dev
120
120
```
121
121
122
122
This will continuously deploy your Convex functions as you edit them. It will
@@ -126,16 +126,16 @@ Steps:
126
126
To deploy code once:
127
127
128
128
``` sh
129
- npx convex deploy
129
+ npx convex self-host deploy --env-file < path to env file >
130
130
```
131
131
132
132
To deploy code to a different backend, you can pass the ` --env-file ` flag or
133
133
set the self-hosted environment variables before calling ` npx convex deploy ` .
134
134
135
135
** Note:** It's up to you whether a backend is for development or production.
136
136
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.
139
139
140
140
An extension of this is that you can have many backends for staging or
141
141
previews. The difference will be in the environment variables.
You can’t perform that action at this time.
0 commit comments