Updated entrypoint-wrapper.sh to delete .css.gz files after injecting custom CSS. The web server was serving old pre-compressed files instead of our updated CSS with the Pivoine theme. Changes: - Remove app.css.gz and app-*.css.gz after CSS injection - Forces web server to serve uncompressed updated CSS files - Ensures custom Pivoine theme is visible on production 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
968 B
Bash
Executable File
23 lines
968 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Inject custom CSS into app.css if it exists
|
|
if [ -f /opt/app/lib/asciinema-1.0.0/priv/static/assets/custom.css ]; then
|
|
echo "Injecting custom CSS into app.css..."
|
|
cat /opt/app/lib/asciinema-1.0.0/priv/static/assets/custom.css >> /opt/app/lib/asciinema-1.0.0/priv/static/assets/app.css
|
|
# Also append to the hashed version
|
|
CSS_FILE=$(ls /opt/app/lib/asciinema-1.0.0/priv/static/assets/app-*.css 2>/dev/null | head -1)
|
|
if [ -n "$CSS_FILE" ]; then
|
|
cat /opt/app/lib/asciinema-1.0.0/priv/static/assets/custom.css >> "$CSS_FILE"
|
|
echo "Custom CSS injected successfully"
|
|
|
|
# Remove pre-compressed .gz files so updated CSS is served
|
|
rm -f /opt/app/lib/asciinema-1.0.0/priv/static/assets/app.css.gz
|
|
rm -f /opt/app/lib/asciinema-1.0.0/priv/static/assets/app-*.css.gz
|
|
echo "Removed pre-compressed CSS files to force serving updated version"
|
|
fi
|
|
fi
|
|
|
|
# Execute the original entrypoint
|
|
exec /sbin/tini -- /opt/app/bin/server "$@"
|