Update entrypoint to always sync static assets (not only new ones)

This commit is contained in:
Eugene Burmakin 2025-12-16 18:30:07 +01:00
parent d40b2a1959
commit 87baf8bb11
2 changed files with 4 additions and 3 deletions

View file

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## Fixed
- Fixed a bug preventing the app to start if a composite index on stats table already exists. #2034
- New compiled assets will override old ones on app start to prevent serving stale assets.
# [0.36.3] - 2025-12-14

View file

@ -35,10 +35,10 @@ export DATABASE_NAME
rm -f $APP_PATH/tmp/pids/server.pid
# Sync static assets from image to volume
# This ensures new files (like maps_maplibre styles) are copied to the persistent volume
# This ensures new and updated files are copied to the persistent volume
if [ -d "/tmp/public_assets" ]; then
echo "📦 Syncing new static assets to public volume..."
cp -rn /tmp/public_assets/* $APP_PATH/public/ 2>/dev/null || true
echo "📦 Syncing static assets to public volume..."
cp -ru /tmp/public_assets/* $APP_PATH/public/ 2>/dev/null || true
echo "✅ Static assets synced!"
fi