Skip to content

About

Self hosting code for Recogito-Studio

Topics

Resources

Stars

26 stars

Watchers

3 watching

Forks

Repository files navigation

Recogito Studio

RecogitoStudio is ready for self-hosting!

Documentation

Trigger.dev (project import/export)

Project import/export runs as background jobs on Trigger.dev, so a Trigger.dev project is required for those features (the rest of the app works without it). You can use managed Trigger.dev Cloud or self-host your own instance. See Set Up Trigger.dev for the setup and task-deploy steps. If you self-host, pin your instance to a version compatible with the client's @trigger.dev/sdk (see package.json).

Upgrade Recogito Studio

To upgrade your self-hosted instance, use the provided upgrade.sh script (see also the upgrade guide). This script automatically pulls the latest code, applies your custom configurations, builds the new Docker image, updates the database schema, and restarts your containers.

Make sure you are in the root of this repo, recogito-studio, and pull the latest version.

cd /path/to/recogito-studio
git pull

Before upgrading, compare your live .env file against the latest .env.example to ensure you aren't missing any newly required variables.

cat ./docker/.env.example

If you customize your config in ./docker/config/config.local.json, check for upstream changes to config.json that you should merge into it.

diff ./docker/config/config.json ./docker/config/config.local.json

Before you can run the script for the first time, you will need to grant it execution permissions.

chmod +x upgrade.sh

Finally, execute the script.

./upgrade.sh

Note: The upgrade process builds a new Docker image from scratch and pushes schema changes to your database. Depending on your server's resources, this process usually takes a few minutes to complete.

Before changing any containers, the upgrade script backs up the database to ./backups/pre-upgrade-<timestamp>/. The five most recent backups are kept. To restore a backup, follow Backup and Restore DB. If you already back up the whole server before upgrading, you can tell upgrade.sh to skip the backup:

SKIP_DB_BACKUP=true ./upgrade.sh

Postgres upgrades

Recogito Studio now runs on Postgres 17. upgrade.sh will search for a Postgres 15 database. If it finds one, it will automatically run ./docker/utils/upgrade-pg17.sh to upgrade it in place with pg_upgrade before starting the new containers. That script is adapted from Supabase's upstream migration script.

When upgrading Postgres, there are a couple extra requirements to the upgrade script:

  • root access via sudo
  • free disk space of at least twice the size of ./docker/volumes/db/data + 5 GB

Data from the old version of Postgres will be stored in ./docker/volumes/db/data.bak.pg<version> until you manually delete it.

Recogito Studio will follow Supabase's lead in upgrading to Postgres 19 sometime in the future.

About

Self hosting code for Recogito-Studio

Topics

Resources

Stars

26 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages