Skip to main content

Upgrading Current

danger

Ensure you backup the uploads directory, config.json, orion.db, and current.db under /backend before upgrading! These files contain your user data.

Upgrading Current may overwrite your local modifications (such as port configuration). If you have made changes to the code, be sure to backup your modifications first.

Once data is lost, it will be very difficult to recover.

Automatic Upgrade

For users who downloaded Current using git clone, upgrading is very simple. Just run the following commands in the root directory of the project:

git fetch origin
git reset --hard origin/main

Manual Upgrade

Manually upgrade the back-end and front-end by downloading the latest package from Github.

Upgrading the Back-end

  1. Navigate to the /backend directory.
  2. Delete all files except the uploads directory, config.json, orion.db, and current.db.
  3. Copy the new back-end files to the /backend directory.
  4. Run pip install -r requirements.txt to install the new dependencies.
  5. Restart the back-end service.

Upgrading the Front-end

  1. Navigate to the root directory of the project.
  2. Delete all files except the /backend directory (if your back-end is stored there).
  3. Copy the new front-end files to the root directory of the project.
  4. Re-run pnpm install and pnpm build to install dependencies and build files (refer to Installing Current).
  5. Restart the front-end service.