Skip to content

Commit

Permalink
Use webserver-port instead of replica-port
Browse files Browse the repository at this point in the history
  • Loading branch information
dskloetd committed Feb 3, 2025
1 parent 32f2038 commit 7b723eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/dfx-snapshot-restore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ rm -fr .local/share/dfx/network/local
tar --extract --xz --file "$DFX_SNAPSHOT_FILE"
# Note: dfx start works here but not in the project dir.
dfx start --background
num_canisters="$(curl -s "http://localhost:$(dfx info replica-port)/_/dashboard" | grep -c '<h3>Execution state</h3>')"
num_canisters="$(curl -s "http://localhost:$(dfx info webserver-port)/_/dashboard" | grep -c '<h3>Execution state</h3>')"
echo "Approx num canisters: $num_canisters"
popd
rm -fr .dfx
Expand Down
2 changes: 1 addition & 1 deletion bin/dfx-state-install
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ rm -fr .local/share/dfx
unzip -q "$DFX_SNAPSHOT_FILE"
# Note: dfx start works here but not in the project dir.
dfx start --background
num_canisters="$(curl -s "http://localhost:$(dfx info replica-port)/_/dashboard" | grep -c '<h3>Execution state</h3>')"
num_canisters="$(curl -s "http://localhost:$(dfx info webserver-port)/_/dashboard" | grep -c '<h3>Execution state</h3>')"
echo "Approx num canisters: $num_canisters"
popd
rm -fr .dfx
Expand Down

0 comments on commit 7b723eb

Please sign in to comment.