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: README.md
+67-14
Original file line number
Diff line number
Diff line change
@@ -49,43 +49,72 @@ For a full list of all available CLI options on Sentry run `--help`:
49
49
cargo run -p sentry -- --help
50
50
```
51
51
52
+
Starting the Sentry API in will always run migrations, this will make sure the database is always up to date with the latest migrations, before starting and exposing the web server.
53
+
54
+
In `development` ( [`ENV` environment variable](#environment-variables) ) it will seed the database as well.
55
+
52
56
#### Using the `Ethereum Adapter`
53
57
54
-
The password for the Keystore file can be set using the environment variable `KEYSTORE_PWD`.
58
+
The password for the Keystore file can be set using the [environment variable `KEYSTORE_PWD`](#adapter).
For full list, check out (primitives/src/util/tests/prep_db.rs#L29-L43)[./primitives/src/util/tests/prep_db.rs#L29-L43]
82
98
83
99
#### Environment variables:
84
100
85
-
- `ENV`: `production` or `development` - pass this env. variable if you want to use the default configuration paths - [`docs/config/dev.toml`](./docs/config/dev.toml) (for development) or [`docs/config/prod.toml`](./docs/config/prod.toml) (for production)
86
-
- `PORT`
87
-
- `KEYSTORE_PWD`
88
-
- `POSTGRES_DB`
101
+
- `ENV` - `production` or `development`;*default*: `development` - passing this env. variable will use the default configuration paths - [`docs/config/dev.toml`](./docs/config/dev.toml) (for `development`) or [`docs/config/prod.toml`](./docs/config/prod.toml) (for `production`). Otherwise you can pass your own configuration file path to the binary (check `cargo run -p sentry --help`for more information). In `development` it will make sure Sentry to seed the database.
102
+
- `PORT` - *default*: `8005` - The local port that Sentry API will be accessible at
103
+
- `ANALYTICS_RECORDER` - accepts any non-zero value - whether or not to start the `Analytics recorder` that will track analytics stats for payout events (`IMPRESSION`&`CLICK`)
104
+
##### Adapter
105
+
- `KEYSTORE_PWD` - Password for the `Keystore file`, only available when using `Ethereum Adapter` (`--adapter ethereum`)
- `ENV`: `production` or `development` ( *default* ) - passing this env. variable will use the default configuration paths - [`docs/config/dev.toml`](./docs/config/dev.toml) (for `development`) or [`docs/config/prod.toml`](./docs/config/prod.toml) (for `production`). Otherwise you can pass your own configuration file path to the binary (check `cargo run -p sentry --help`for more information). In `development` it will make sure Sentry to seed the database.
183
+
- `PORT` - The local port that Sentry API will accessible at
184
+
185
+
##### Adapter
186
+
- `KEYSTORE_PWD` - Password for the `Keystore file`, only available when using `Ethereum Adapter` (`--adapter ethereum`)
187
+
135
188
## Development environment
136
189
137
190
We use [`cargo-make`](https://github.com/sagiegurari/cargo-make#overview) for running automated checks (tests, builds, formatting, code linting, etc.) and building the project locally
0 commit comments