adbe0392ca
* 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
22 lines
390 B
Bash
Executable File
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
|