near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
123 stars 56 forks source link

indexer-explorer --version panics #298

Closed rsysadmin-com closed 1 year ago

rsysadmin-com commented 1 year ago

Hello all!

today I compiled v0.10.23 and it caught my eye the fact that I cannot check the version like I do with other binaries... also with neard...

~/build/near-indexer/target/release$ ./indexer-explorer --version thread 'main' panicked at 'DATABASE_URL must be set in .env file: NotPresent', src/models/mod.rs:37:30 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Is this an undocumented feature or is it the expected output? I personally feel that "—version" must work straightforward at all times... YMMV.

Thanks