Skip to content

Developer Notes

Ian Clarke edited this page Jan 2, 2025 · 8 revisions
# Developer Notes: Freenet Gateway on Vega

## Gateway Status
The gateway is operational on Vega but has some issues when disconnecting and attempting to reconnect.

## Systemd Service
A `systemd` service has been configured to manage the gateway.

## Updating the Gateway
To update the gateway, follow these steps:

1. Navigate to the Freenet core directory:
   ```bash
   cd /home/freenet/freenet/freenet-core
  1. Pull the latest changes or switch branches:
    git pull
  2. Build the core crate in release mode:
    cd crates/core && cargo build --release
  3. Restart the systemd service:
    sudo systemctl restart freenet-gateway.service

Viewing Logs

To check the logs for the gateway service:

sudo journalctl -u freenet-gateway.service -f

Running Locally

To run locally and connect to the gateway from the main branch, use the following steps:

  1. Install the core crate:
    cd crates/core && cargo install --path .
  2. Start the Freenet process with logging enabled:
    RUST_LOG=info,freenet=debug,freenet-stdlib=debug freenet

Note: The process will attempt to connect to both gateways. Since one of the gateways is not up yet, you are likely to encounter some connection failures.

Clone this wiki locally