Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
move getsentry instructions above siloed instance instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mifu67 committed Jul 9, 2024
1 parent 7fbf95e commit 5f7abec
Showing 1 changed file with 36 additions and 35 deletions.
71 changes: 36 additions & 35 deletions src/docs/environment/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,42 @@ sentry devservices rm snuba
sentry devservices up snuba
```

## Running the Getsentry Development Server

<Alert title="Employees Only" level="warning">
Only Sentry employees have access to getsentry.
</Alert>

See also: <Link to="/sentry-vs-getsentry/">Sentry vs Getsentry</Link>

Just like running `sentry` (see above), you can start the `devservices` using the following command in the `getsentry` folder:

```shell
sentry devservices up
```

After that, you can start the development server inside the `getsentry` folder:

```shell
getsentry devserver --workers
```

**Note**: You **cannot** have both sentry and getsentry devserver running at the same time.

After the server warms up for a little while, you must access it
at [http://dev.getsentry.net:8000](http://dev.getsentry.net:8000/).
Using localhost doesn't work.

If you need to overwrite configuration options for your local
environment, you can create `getsentry/conf/settings/devlocal.py` and put the
configuration option overrides there. This module will be automatically imported
by `dev.py` if it exists.

To enable the ingest workers, follow the steps described <Link to="#ingestion-pipeline-relay">here</Link> and run
```shell
getsentry devserver --workers --ingest```
## Running siloed instances
By default `sentry devserver` will run a monolith mode application server. You can also run ``devserver`` with siloed application instances. Before you do, you need to <Link to="/database-migrations/#cloning-a-monolith-database">create split silo databases</Link>.
Expand Down Expand Up @@ -171,41 +207,6 @@ SENTRY_SILO_DEVSERVER=1 SENTRY_SILO_MODE=CONTROL getsentry django shell
SENTRY_SILO_DEVSERVER=1 SENTRY_SILO_MODE=REGION SENTRY_REGION=us getsentry django shell
```

## Running the Getsentry Development Server

<Alert title="Employees Only" level="warning">
Only Sentry employees have access to getsentry.
</Alert>

See also: <Link to="/sentry-vs-getsentry/">Sentry vs Getsentry</Link>

Just like running `sentry` (see above), you can start the `devservices` using the following command in the `getsentry` folder:

```shell
sentry devservices up
```

After that, you can start the development server inside the `getsentry` folder:

```shell
getsentry devserver --workers
```

**Note**: You **cannot** have both sentry and getsentry devserver running at the same time.

After the server warms up for a little while, you must access it
at [http://dev.getsentry.net:8000](http://dev.getsentry.net:8000/).
Using localhost doesn't work.

If you need to overwrite configuration options for your local
environment, you can create `getsentry/conf/settings/devlocal.py` and put the
configuration option overrides there. This module will be automatically imported
by `dev.py` if it exists.

To enable the ingest workers, follow the steps described <Link to="#ingestion-pipeline-relay">here</Link> and run
```shell
getsentry devserver --workers --ingest```
## Troubleshooting

You might also be interested in <Link to="/continuous-integration/#troubleshooting-ci">troubleshooting CI</Link>.
Expand Down

0 comments on commit 5f7abec

Please sign in to comment.