mirror of
https://github.com/tig-pool-nk/tig-monorepo.git
synced 2026-02-21 17:37:21 +08:00
Move envvars to .env file.
This commit is contained in:
parent
2364377174
commit
48d8dcd888
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,5 +18,4 @@ Cargo.lock
|
||||
__pycache__/
|
||||
|
||||
# Ignore these.
|
||||
.env
|
||||
db_data/
|
||||
7
tig-benchmarker/.env
Normal file
7
tig-benchmarker/.env
Normal file
@ -0,0 +1,7 @@
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=mysecretpassword
|
||||
POSTGRES_DB=postgres
|
||||
UI_PORT=80
|
||||
DB_PORT=5432
|
||||
MASTER_PORT=5115
|
||||
VERBOSE=
|
||||
@ -7,17 +7,21 @@ Benchmarker for TIG. Expected setup is a single master and multiple slaves on di
|
||||
Simply run:
|
||||
|
||||
```
|
||||
POSTGRES_USER=postgres \
|
||||
POSTGRES_PASSWORD=mysecretpassword \
|
||||
POSTGRES_DB=postgres \
|
||||
UI_PORT=80 \
|
||||
DB_PORT=5432 \
|
||||
MASTER_PORT=5115 \
|
||||
# set VERBOSE=1 for debug master logs
|
||||
VERBOSE= \
|
||||
docker-compose up --build
|
||||
```
|
||||
|
||||
This uses the `.env` file:
|
||||
|
||||
```
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=mysecretpassword
|
||||
POSTGRES_DB=postgres
|
||||
UI_PORT=80
|
||||
DB_PORT=5432
|
||||
MASTER_PORT=5115
|
||||
VERBOSE=
|
||||
```
|
||||
|
||||
See last section on how to find your player_id & api_key.
|
||||
|
||||
**Notes:**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user