Skip to content

Commit e3dd921

Browse files
Fix ordering of commands in self-hosted docs (#477)
1 parent 530bacb commit e3dd921

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/self-hosted/bitbucket.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,18 @@ cat coderabbit.json | docker login -u _json_key --password-stdin us-docker.pkg.d
157157
docker pull us-docker.pkg.dev/coderabbitprod/self-hosted/coderabbit-agent:latest
158158
```
159159

160-
### Verify the image is up
160+
## Host the image
161161

162-
You can query `/health` endpoint to verify that the `coderabbit-agent` service is up and running.
162+
You can host the image on a server, serverless function, or container environment and expose port `8080`. Run the Docker image with the equivalent command on your chosen platform, ensuring you replace the `.env` file path with the path to your actual `.env` file:
163163

164164
```bash
165-
curl 127.0.0.1:8080/health
165+
docker run --env-file .env --publish 127.0.0.1:8080:8080 us-docker.pkg.dev/coderabbitprod/self-hosted/coderabbit-agent:latest
166166
```
167167

168-
## Host the image
168+
### Verify the image is up
169169

170-
You can host the image on a server, serverless function, or container environment and expose port `8080`. Run the Docker image with the equivalent command on your chosen platform, ensuring you replace the `.env` file path with the path to your actual `.env` file:
170+
You can query `/health` endpoint to verify that the `coderabbit-agent` service is up and running.
171171

172172
```bash
173-
docker run --env-file .env --publish 127.0.0.1:8080:8080 us-docker.pkg.dev/coderabbitprod/self-hosted/coderabbit-agent:latest
173+
curl 127.0.0.1:8080/health
174174
```

docs/self-hosted/gitlab.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,18 +203,18 @@ cat coderabbit.json | docker login -u _json_key --password-stdin us-docker.pkg.d
203203
docker pull <docker-registry>/coderabbit-agent:latest
204204
```
205205

206-
### Verify the image is up
206+
## Host the image
207207

208-
You can query `/health` endpoint to verify that the coderabbit-agent service is up and running.
208+
You can host the image on a server, serverless function, or container environment and expose port `8080`. Run the Docker image with the equivalent command on your chosen platform, ensuring you replace the `.env` file path with the path to your actual `.env` file:
209209

210210
```bash
211-
curl 127.0.0.1:8080/health
211+
docker run --env-file .env --publish 127.0.0.1:8080:8080 <docker-registry>/coderabbit-agent:latest
212212
```
213213

214-
## Host the image
214+
### Verify the image is up
215215

216-
You can host the image on a server, serverless function, or container environment and expose port `8080`. Run the Docker image with the equivalent command on your chosen platform, ensuring you replace the `.env` file path with the path to your actual `.env` file:
216+
You can query `/health` endpoint to verify that the coderabbit-agent service is up and running.
217217

218218
```bash
219-
docker run --env-file .env --publish 127.0.0.1:8080:8080 <docker-registry>/coderabbit-agent:latest
219+
curl 127.0.0.1:8080/health
220220
```

0 commit comments

Comments
 (0)