Difference between revisions of "BlockScout manual deployment"
Jump to navigation
Jump to search
(21 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
* https://docs.blockscout.com/for-developers/manual-deployment | * https://docs.blockscout.com/for-developers/manual-deployment | ||
+ | * Repo: https://github.com/blockscout/blockscout.git | ||
+ | * https://github.com/blockscout/blockscout/blob/master/docker-compose/docker-compose-no-build-geth.yml | ||
− | [[apt install elixir]] [[erlang-dev]] | + | [[apt install]] -y [[apt install elixir|elixir]] [[erlang-dev]] [[apt install postgresql|postgresql]] [[apt install cargo|cargo]] [[docker.io]] [[docker-compose]] |
[[brew install elixir]] | [[brew install elixir]] | ||
export DATABASE_URL=postgresql://user:password@localhost:5432/blockscout | export DATABASE_URL=postgresql://user:password@localhost:5432/blockscout | ||
− | export SECRET_KEY_BASE=VTIB3uHDNbvrY0+60ZWgUoUBKDn9ppLR8MI4CpRz4/qLyEFs54ktJfaNT6Z221No | + | export [[SECRET_KEY_BASE]]=VTIB3uHDNbvrY0+60ZWgUoUBKDn9ppLR8MI4CpRz4/qLyEFs54ktJfaNT6Z221No |
export ENABLE_RUST_VERIFICATION_SERVICE=true | export ENABLE_RUST_VERIFICATION_SERVICE=true | ||
export RUST_VERIFICATION_SERVICE_URL=http://0.0.0.0:8043/ | export RUST_VERIFICATION_SERVICE_URL=http://0.0.0.0:8043/ | ||
− | export ETHEREUM_JSONRPC_VARIANT=nethermind | + | export [[ETHEREUM_JSONRPC_VARIANT]]=[[nethermind]] |
− | export ETHEREUM_JSONRPC_HTTP_URL=http://localhost:8545 | + | export [[ETHEREUM_JSONRPC_HTTP_URL]]=http://localhost:8545 |
export DATABASE_URL=postgresql://... | export DATABASE_URL=postgresql://... | ||
export COIN=DAI | export COIN=DAI | ||
Line 20: | Line 22: | ||
[[mix do deps.get, local.rebar --force, deps.compile]] | [[mix do deps.get, local.rebar --force, deps.compile]] | ||
− | [[cargo install | + | [[cargo install --git https://github.com/blockscout/blockscout-rs]] [[smart-contract-verifier-http]] |
+ | |||
[[smart-contract-verifier-http]] | [[smart-contract-verifier-http]] | ||
+ | |||
[[mix compile]] | [[mix compile]] | ||
[[pg_ctl -D]] /usr/local/var/postgres start | [[pg_ctl -D]] /usr/local/var/postgres start | ||
Line 42: | Line 46: | ||
== Related == | == Related == | ||
− | + | * <code>[[docker pull consensys/blockscout]]</code> | |
+ | * <code>[[geth --http]]</code> | ||
+ | * [[Ethereum node]] | ||
+ | * <code>[[JSON_RPC]]</code> | ||
+ | * <code>[[CHAIN_ID]]</code> | ||
+ | NETWORK | ||
+ | SUBNETWORK | ||
== See also == | == See also == |
Latest revision as of 07:37, 16 March 2023
- https://docs.blockscout.com/for-developers/manual-deployment
- Repo: https://github.com/blockscout/blockscout.git
- https://github.com/blockscout/blockscout/blob/master/docker-compose/docker-compose-no-build-geth.yml
apt install -y elixir erlang-dev postgresql cargo docker.io docker-compose brew install elixir
export DATABASE_URL=postgresql://user:password@localhost:5432/blockscout export SECRET_KEY_BASE=VTIB3uHDNbvrY0+60ZWgUoUBKDn9ppLR8MI4CpRz4/qLyEFs54ktJfaNT6Z221No
export ENABLE_RUST_VERIFICATION_SERVICE=true export RUST_VERIFICATION_SERVICE_URL=http://0.0.0.0:8043/
export ETHEREUM_JSONRPC_VARIANT=nethermind export ETHEREUM_JSONRPC_HTTP_URL=http://localhost:8545 export DATABASE_URL=postgresql://... export COIN=DAI export ...
git clone https://github.com/blockscout/blockscout && cd blockscout mix do deps.get, local.rebar --force, deps.compile
cargo install --git https://github.com/blockscout/blockscout-rs smart-contract-verifier-http
smart-contract-verifier-http
mix compile pg_ctl -D /usr/local/var/postgres start mix do ecto.create, ecto.migrate
cd apps/block_scout_web/assets; npm install && node_modules/webpack/bin/webpack.js --mode production; cd - cd apps/explorer && npm install; cd -
13)
mix phx.digest
14)
cd apps/block_scout_web; mix phx.gen.cert blockscout blockscout.local; cd -
14) Modifiy /etc/hosts chrome://flags/#allow-insecure-localhost
15)
mix phx.server
Related[edit]
NETWORK SUBNETWORK
See also[edit]
Advertising: