diff --git a/bin/dfx-snapshot-restore b/bin/dfx-snapshot-restore index 26a52ab9..29f64f09 100755 --- a/bin/dfx-snapshot-restore +++ b/bin/dfx-snapshot-restore @@ -18,7 +18,6 @@ help_text() { source "$SOURCE_DIR/clap.bash" # Define options clap.define short=s long=snapshot desc="The file to save to" variable=DFX_SNAPSHOT_FILE default="state.tar.xz" -clap.define long=pocketic desc="Whether to start dfx with --pocketic" variable=USE_POCKET_IC nargs=0 default=false # Source the output file ---------------------------------------------------------- source "$(clap.build)" @@ -27,12 +26,10 @@ DFX_SNAPSHOT_FILE="$(realpath "$DFX_SNAPSHOT_FILE")" pushd "$HOME" rm -fr .local/share/dfx/network/local tar --extract --xz --file "$DFX_SNAPSHOT_FILE" -POCKET_IC_ARG=() -if [[ "${USE_POCKET_IC:-}" == "true" ]]; then - POCKET_IC_ARG=(--pocketic) -fi + # Note: dfx start works here but not in the project dir. -dfx start "${POCKET_IC_ARG[@]}" --background +dfx start --background +sleep 10 # wait for dfx to start num_canisters="$(curl -s "http://localhost:$(dfx info webserver-port)/_/dashboard" | grep -c '