Files
overleaf-cep/server-ce/init_scripts/900_run_web_migrations.sh
Anna Claire Fields 0d64a88a46 Yarn 4 Migration (#32253)
Migrates the Overleaf monorepo package manager from npm (v11) to Yarn 4 (v4.9.1) using node-modules linker mode.

GitOrigin-RevId: 50d32ab01955c15e29679eff9e9e9cfb897fab2d
2026-04-28 08:52:37 +00:00

14 lines
329 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
if [[ "${OVERLEAF_IS_SERVER_PRO:-null}" == "true" ]]; then
environment="server-pro"
else
environment="server-ce"
fi
echo "Running migrations for $environment"
cd /overleaf/tools/migrations
/sbin/setuser www-data yarn run migrations migrate -t "$environment"
echo "Finished migrations"