Skip to content

Commit 527aeaa

Browse files
Add asset-map compilation to entrypoint script
This is usefull for plug-and-play production mode for asset-mapper
1 parent 3385dcf commit 527aeaa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frankenphp/docker-entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
5656
php bin/console doctrine:migrations:migrate --no-interaction --all-or-nothing
5757
fi
5858
fi
59+
60+
if [ -f importmap.php ]; then
61+
php bin/console asset-map:compile
62+
fi
63+
5964

6065
echo 'PHP app ready!'
6166
fi

0 commit comments

Comments
 (0)