Files
nym/nym-statistics-api/launch_statistics_api.sh
Simon Wicky adbe0392ca Nym-statistics-api : Postgres schema and SSL handling + Dockerfile and GitHub action (#5817)
* add option for ssl mode

* add dockerfile and dev util

* add github workflow for nym-statistics api

* apply review comments

* ci check for version + removed checks from push
2025-06-03 12:06:00 +02:00

22 lines
390 B
Bash
Executable File

#!/bin/bash
set -e
user_rust_log_preference=$RUST_LOG
function run_bare() {
# export necessary env vars
set -a
source .env
set +a
export RUST_LOG=${user_rust_log_preference:-debug}
echo "RUST_LOG=${RUST_LOG}"
cargo run --package nym-statistics-api
}
# Requires pg_up.sh, or a running postres instance, with the correct parameters in an .env file
run_bare