Skip to content

Commit 04fd1b8

Browse files
authored
chore: decouple l2-bridge-set-env from l2-bridge-start (#46)
1 parent 3ac633b commit 04fd1b8

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.env.bridge.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
NEXT_PUBLIC_L1_CHAIN_ID=11155111
22
NEXT_PUBLIC_L1_CHAIN_NAME="Sepolia"
3-
NEXT_PUBLIC_L1_RPC_URL=https://sepolia.infura.io/v3/<INFURA_PROJECT_ID>
3+
# WARNING: The RPC URL is exposed to the browser client. We recommend using a public RPC URL.
4+
NEXT_PUBLIC_L1_RPC_URL=https://rpc.ankr.com/eth_sepolia
45
NEXT_PUBLIC_L1_EXPLORER_URL=https://sepolia.etherscan.io/
56
NEXT_PUBLIC_L2_CHAIN_ID=11155420
67
NEXT_PUBLIC_L2_CHAIN_NAME="Optimism Sepolia"

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,13 @@ l2-bridge-deploy-l1-multicall:
9696
@$(CURDIR)/scripts/l2-bridge/l2-bridge-deploy-l1-multicall.sh
9797
.PHONY: l2-bridge-deploy-l1-multicall
9898

99+
## Set the environment variables for the OP Bridge UI
100+
l2-bridge-set-env:
101+
@$(CURDIR)/scripts/l2-bridge/l2-bridge-set-env.sh
102+
.PHONY: l2-bridge-set-env
103+
99104
## Launch the OP Bridge UI
100105
l2-bridge-start:
101-
@$(CURDIR)/scripts/l2-bridge/l2-bridge-set-env.sh
102106
@docker compose -f docker/docker-compose-l2.yml up -d op-bridge-ui
103107
.PHONY: l2-bridge-start
104108

scripts/l2/l2-stop.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ set -euo pipefail
55
echo "Stopping and removing OP chain containers..."
66
docker compose -f docker/docker-compose-l2.yml down
77

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

1111
# Remove the op-chain-deployment volume
1212
echo "Removing the op-chain-deployment volume..."

0 commit comments

Comments
 (0)