Skip to content

Commit

Permalink
restore webserver-port
Browse files Browse the repository at this point in the history
  • Loading branch information
dskloetd committed Nov 26, 2024
1 parent 46a5a62 commit fcd0cac
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 @@ -30,7 +30,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 --pocketic --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 fcd0cac

Please sign in to comment.