Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Fix PATH config file location #984

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docusaurus/docs/operate/quickstart/gateway_cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Refer to [PATH Gateway modes](https://path.grove.city/) for more configuration o

:::

Run the following command to generate a default Shannon config `cmd/.config.yaml`:
Run the following command to generate a default Shannon config `config/.config.yaml`:

_NOTE: You'll be prompted to confirm the `gateway` account private key export._

Expand All @@ -228,27 +228,27 @@ _NOTE: You'll be prompted to confirm the `gateway` account private key export._
make copy_shannon_config

# Replace the endpoints as needed
sed -i "s|rpc_url: ".*"|rpc_url: $NODE|" cmd/.config.yaml
sed -i "s|host_port: ".*"|host_port: shannon-testnet-grove-grpc.beta.poktroll.com:443|" cmd/.config.yaml
sed -i "s|rpc_url: ".*"|rpc_url: $NODE|" config/.config.yaml
red-0ne marked this conversation as resolved.
Show resolved Hide resolved
sed -i "s|host_port: ".*"|host_port: shannon-testnet-grove-grpc.beta.poktroll.com:443|" config/.config.yaml
red-0ne marked this conversation as resolved.
Show resolved Hide resolved

# Update the gateway and application addresses
sed -i "s|gateway_address: .*|gateway_address: $GATEWAY_ADDR|" cmd/.config.yaml
sed -i "s|gateway_private_key_hex: .*|gateway_private_key_hex: $(poktrolld keys export gateway --unsafe --unarmored-hex)|" cmd/.config.yaml
sed -i '/owned_apps_private_keys_hex:/!b;n;c\ - '"$(poktrolld keys export application --unsafe --unarmored-hex)" cmd/.config.yaml
sed -i "s|gateway_address: .*|gateway_address: $GATEWAY_ADDR|" config/.config.yaml
red-0ne marked this conversation as resolved.
Show resolved Hide resolved
sed -i "s|gateway_private_key_hex: .*|gateway_private_key_hex: $(poktrolld keys export gateway --unsafe --unarmored-hex)|" config/.config.yaml
red-0ne marked this conversation as resolved.
Show resolved Hide resolved
sed -i '/owned_apps_private_keys_hex:/!b;n;c\ - '"$(poktrolld keys export application --unsafe --unarmored-hex)" config/.config.yaml
red-0ne marked this conversation as resolved.
Show resolved Hide resolved

# If you're using the test keyring-backend:
# sed -i "s|gateway_private_key_hex: .*|gateway_private_key_hex: $(poktrolld keys export gateway --unsafe --unarmored-hex --keyring-backend test)|" cmd/.config.yaml
# sed -i '/owned_apps_private_keys_hex:/!b;n;c\ - '"$(poktrolld keys export application --unsafe --unarmored-hex --keyring-backend test)" cmd/.config.yaml
# sed -i "s|gateway_private_key_hex: .*|gateway_private_key_hex: $(poktrolld keys export gateway --unsafe --unarmored-hex --keyring-backend test)|" config/.config.yaml
red-0ne marked this conversation as resolved.
Show resolved Hide resolved
# sed -i '/owned_apps_private_keys_hex:/!b;n;c\ - '"$(poktrolld keys export application --unsafe --unarmored-hex --keyring-backend test)" config/.config.yaml
red-0ne marked this conversation as resolved.
Show resolved Hide resolved
```

When you're done, run `cat cmd/.config.yaml` to view the updated config file.
When you're done, run `cat config/.config.yaml` to view the updated config file.

### Run the `PATH` Gateway

#### Build and run the `PATH` Gateway from source

```bash
cd cmd/ && go build -o path . && ./path
go build -o ./path ./cmd
```

You should see the following output:
Expand Down
Loading