-
Notifications
You must be signed in to change notification settings - Fork 16
Project Updates
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:
-
Rename the old backend and frontend sub folders:
mv backend backend-old mv frontend frontend-old
-
Pull the latest torrust-index and its submodules:
git pull git pull --recurse-submodules
-
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
andecho "DATABASE_URL=sqlite://data.db?mode=rwc" > .env
-
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