mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-25 23:24:00 +03:00
15 lines
456 B
Bash
Executable File
15 lines
456 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Clear cache after updating the app
|
|
|
|
echo "Clearing cache for twenty."
|
|
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" run --rm server yarn command:prod cache:flush
|
|
echo "Successfully cleared the twenty cache."
|
|
|
|
echo "Running database migrations for twenty."
|
|
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" run --rm server yarn database:migrate:prod
|
|
echo "Successfully run database migrations for twenty."
|
|
|
|
exit 0
|