Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot get cronos-blockscout work #136

Open
EAG-es opened this issue Feb 26, 2024 · 0 comments
Open

I cannot get cronos-blockscout work #136

EAG-es opened this issue Feb 26, 2024 · 0 comments

Comments

@EAG-es
Copy link

EAG-es commented Feb 26, 2024

I follow the instructions (see notes):

git clone https://github.com/crypto-org-chain/cronos-blockscout.git
cd cronos-blockscout
asdf install
export DATABASE_URL=postgresql://<username>:<username_password>@localhost:5432/blockscout
mix do deps.get, local.rebar --force, deps.compile
mix phx.gen.secret
    UjkomPOS3FuoIz9Ssxvh4REJNlwfhCvJbpEVhInwhyOaCmAfRjXd43VwLf9zZ7bL
export SECRET_KEY_BASE=UjkomPOS3FuoIz9Ssxvh4REJNlwfhCvJbpEVhInwhyOaCmAfRjXd43VwLf9zZ7bL

- Export remaining environment variables as needed.

export ETHEREUM_JSONRPC_VARIANT=geth
export ETHEREUM_JSONRPC_HTTP_URL=http://127.0.0.1:26661
export API_V2_ENABLED=true
export PORT=3001
export COIN=tCRO
export COIN_NAME=tCRONOS
export DISPLAY_TOKEN_ICONS=true
export MIX_ENV=dev

- Compile application.

mix compile

- If not already running, start Postgres: 

services postgresql start

- Check postgres status: 

pg_isready

- Create and migrate database Install Node.js dependencies

mix do ecto.create, ecto.migrate

- Install Node.js dependencies (v18.0.0)

cd apps/block_scout_web/assets
npm install
npm run deploy 
npx browserslist@latest --update-db
node node_modules/webpack/bin/webpack.js --mode production

- Wait to finnish

cd -
cd apps/explorer
npm install
cd -

- Build static assets for deployment

- Create, if do not exists: …/apps/ethereum_jsonrpc/priv/static, …/apps/explorer/priv/static, …/apps/indexer/priv/static, …/apps/block_scout_web/priv/static

mix phx.digest
cd apps/block_scout_web
mix phx.gen.cert blockscout blockscout.local
cd -

- Add blockscout and blockscout.local to your /etc/hosts

127.0.0.1       localhost blockscout blockscout.local
255.255.255.255 broadcasthost

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback blockscout blockscout.local

- Reboot

docker compose up --build

#FF0000 failed to solve: dockerfile parse error on line 41: unknown instruction: <<<<<<<

#FF0000 The applications does not work.

#FF0000 Not possible to connect to http://localhost:8080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@EAG-es and others