Add cache:warmup deployment step (#361)

This commit is contained in:
Max Wofford
2025-06-25 13:28:11 -04:00
committed by GitHub
parent f71df60c4a
commit 618b5f6c81
2 changed files with 39 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ fi
# If running the rails server then create or migrate existing database
if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
./bin/rails db:prepare
echo "Warming up caches for production deployment..."
./bin/rails cache:warmup
fi
exec "${@}"