mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 01:29:35 +02:00
Migrates the Overleaf monorepo package manager from npm (v11) to Yarn 4 (v4.9.1) using node-modules linker mode. GitOrigin-RevId: 50d32ab01955c15e29679eff9e9e9cfb897fab2d
14 lines
329 B
Bash
Executable File
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"
|