Setting up Substrate-Archive for the first time. Tutorial/Wiki is a bit outdated. Following this solution that I found in "issues". Compiled and ran; however, I got an issue that I believe is MAC related.
Solution:
1. Run docker-compose up -d to start postgres and pgadmin
2. Run DATABASE_URL=postgres://postgres:123@localhost:6432/local_chain_db sqlx database create in substrate-archive/src to create the database.
3. Run DATABASE_URL=postgres://postgres:123@localhost:6432/local_chain_db sqlx migrate run in substrate-archive/src` to create the tables.
4. Run cargo run --release -- -c archive.toml in bin/node-template-archive/ to start indexing. Keep in mind to modify the archive.toml configs.
Ran step 4 and received the following error:
Error:
Error: Failed to create RocksDB directory: `Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }`.
Is there a workaround? Thank you.