Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Project Updates

cgbosse edited this page Jun 15, 2022 · 1 revision

List of all the important updates relating to the project

Index of Updates



08-06-2022 Project restructuring and how to update (only for existing torrust-index users):

We have recently moved to a new project structure for the torrust-index project. The backend and frontend folders have been moved into their own repositories: backend & frontend. These repositories have now been included in this repository as submodules, and they have replaced the old backend and frontend sub folders. This however may lead to problems when updating from an older version of torrust (now torrust-index). To update from an older version of torrust:

  1. Rename the old backend and frontend sub folders:

    mv backend backend-old
    mv frontend frontend-old
  2. Pull the latest torrust-index and its submodules:

    git pull
    git pull --recurse-submodules
  3. Copy your old config and database over:

    cp backend-old/config.toml backend/config.toml
    cp backend-old/data.db backend/data.db
    cp frontend-old/.env frontend/.env

    You might also have to copy your old .env file over or do cd backend and echo "DATABASE_URL=sqlite://data.db?mode=rwc" > .env

  4. Rebuild the binaries and frontend:

    cd backend
    cargo build --release
    cd ../frontend
    npm i
    npm run build

    NOTE: The backend binaries have been renamed to torrust-index-backend. To run them, do: ./target/release/torrust-index-backend