Skip to content

Commit

Permalink
chore: decouple l2-bridge-set-env from l2-bridge-start (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
bap2pecs authored Dec 12, 2024
1 parent 3ac633b commit 04fd1b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .env.bridge.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
NEXT_PUBLIC_L1_CHAIN_ID=11155111
NEXT_PUBLIC_L1_CHAIN_NAME="Sepolia"
NEXT_PUBLIC_L1_RPC_URL=https://sepolia.infura.io/v3/<INFURA_PROJECT_ID>
# WARNING: The RPC URL is exposed to the browser client. We recommend using a public RPC URL.
NEXT_PUBLIC_L1_RPC_URL=https://rpc.ankr.com/eth_sepolia
NEXT_PUBLIC_L1_EXPLORER_URL=https://sepolia.etherscan.io/
NEXT_PUBLIC_L2_CHAIN_ID=11155420
NEXT_PUBLIC_L2_CHAIN_NAME="Optimism Sepolia"
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,13 @@ l2-bridge-deploy-l1-multicall:
@$(CURDIR)/scripts/l2-bridge/l2-bridge-deploy-l1-multicall.sh
.PHONY: l2-bridge-deploy-l1-multicall

## Set the environment variables for the OP Bridge UI
l2-bridge-set-env:
@$(CURDIR)/scripts/l2-bridge/l2-bridge-set-env.sh
.PHONY: l2-bridge-set-env

## Launch the OP Bridge UI
l2-bridge-start:
@$(CURDIR)/scripts/l2-bridge/l2-bridge-set-env.sh
@docker compose -f docker/docker-compose-l2.yml up -d op-bridge-ui
.PHONY: l2-bridge-start

Expand Down
4 changes: 2 additions & 2 deletions scripts/l2/l2-stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set -euo pipefail
echo "Stopping and removing OP chain containers..."
docker compose -f docker/docker-compose-l2.yml down

# Remove the .deploy directory
rm -rf "$(pwd)/.deploy"
# Remove(Move) the .deploy directory
sudo mv "$(pwd)/.deploy" "$(pwd)/.deploy-deprecated-$(date +%Y%m%d%H%M%S)"

# Remove the op-chain-deployment volume
echo "Removing the op-chain-deployment volume..."
Expand Down

0 comments on commit 04fd1b8

Please sign in to comment.