@@ -4,6 +4,27 @@ Scoutcloud Service
4
4
Scoutcloud provides API to deploy and manage blockscout instances.
5
5
It tracks amount of time each instance is running and charges user for it.
6
6
7
+ ## Envs
8
+
9
+ [ anchor ] : < > ( anchors.envs.start )
10
+
11
+ | Variable | Required | Description | Default value |
12
+ | -----------------------------------------| ----------| -----------------------------------------------------| ----------------|
13
+ | ` SCOUTCLOUD__DATABASE__CONNECT__URL ` | true | URL for connecting to the database. | |
14
+ | ` SCOUTCLOUD__GITHUB__OWNER ` | true | GitHub owner or organization name. | |
15
+ | ` SCOUTCLOUD__GITHUB__REPO ` | true | GitHub repository name. | |
16
+ | ` SCOUTCLOUD__GITHUB__TOKEN ` | true | GitHub personal access token for authentication. | |
17
+ | ` SCOUTCLOUD__DATABASE__CREATE_DATABASE ` | | Whether to create the database if it doesn't exist. | ` false ` |
18
+ | ` SCOUTCLOUD__DATABASE__RUN_MIGRATIONS ` | | Whether to run database migrations. | ` false ` |
19
+ | ` SCOUTCLOUD__GITHUB__BRANCH ` | | GitHub branch name | ` main ` |
20
+ | ` SCOUTCLOUD__METRICS__ADDR ` | | Address for metrics collection. | ` 0.0.0.0:6060 ` |
21
+ | ` SCOUTCLOUD__METRICS__ENABLED ` | | Whether metrics collection is enabled. | ` false ` |
22
+ | ` SCOUTCLOUD__METRICS__ROUTE ` | | Route for metrics collection API. | ` /metrics ` |
23
+ | ` SCOUTCLOUD__TRACING__ENABLED ` | | Whether tracing is enabled. | ` true ` |
24
+ | ` SCOUTCLOUD__TRACING__FORMAT ` | | Format for tracing. ` default ` /` json ` | ` default ` |
25
+
26
+ [ anchor ] : < > ( anchors.envs.end )
27
+
7
28
## Dev
8
29
9
30
+ Install [ just] ( https://github.com/casey/just ) cli. Just is like make but better.
@@ -21,6 +42,8 @@ just start-postgres
21
42
+ Now you ready to start API server! Just run it:
22
43
``` bash
23
44
just run
45
+ # or if you want to export envs from .env file
46
+ dotenv -e .env -- just run
24
47
```
25
48
26
49
## Troubleshooting
@@ -33,4 +56,4 @@ just run
33
56
34
57
To fix this error you need to change tonic version of ` tonic ` in ` blockscout-service-launcer ` to ` 0.8 `
35
58
36
- For now you can only change in ` Cargo.lock `
59
+ For now you can only change in ` Cargo.lock `
0 commit comments