Fix metrics.json path to persistent data volume (/app/data)
All checks were successful
Build and Deploy MoneyMaker / build-and-deploy (push) Successful in 12m21s
All checks were successful
Build and Deploy MoneyMaker / build-and-deploy (push) Successful in 12m21s
This commit is contained in:
@@ -28,7 +28,7 @@ from report import _c25_day_return, _unrealised_pnl, _realised_pnl, _total_fees,
|
||||
|
||||
CAPITAL = 10_000
|
||||
LOG_DIR = Path(os.getenv("LOG_DIR", str(Path(__file__).parent / "logs")))
|
||||
METRICS_FILE = Path(__file__).parent / "metrics.json"
|
||||
METRICS_FILE = Path(os.getenv("DATA_DIR", str(Path(__file__).parent / "data"))) / "metrics.json"
|
||||
REFRESH = 60 # seconds
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
Reference in New Issue
Block a user