Skip to content

improve l2-explorer-start make cmd #12

@bap2pecs

Description

@bap2pecs

in the Makefile (see #11) we have

## Launch the OP chain explorer
l2-explorer-start:
	@$(CURDIR)/scripts/l2-blockscout/l2-blockscout-set-env.sh
	docker compose -f docker/docker-compose-l2-explorer.yml up -d backend-db stats-db
	sleep 5
	docker compose -f docker/docker-compose-l2-explorer.yml up -d backend frontend stats smart-contract-verifier visualizer sig-provider visualizer-proxy proxy

ideally, we shouldn't need to specify all the service names. should just be

## Launch the OP chain explorer
l2-explorer-start:
	@$(CURDIR)/scripts/l2-blockscout/l2-blockscout-set-env.sh
	docker compose -f docker/docker-compose-l2-explorer.yml up -d

we are only doing this b/c there are a few db services needs to be started first

is there a better way to do this? e.g. use depends_on and health check

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions