Skip to content

Commit

Permalink
move optimize command to startup command defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
braceyourself committed Jan 20, 2025
1 parent 108b329 commit 185f6c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions build/php_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
# wait for database
php /var/www/html/artisan compose:wait-for-database;


echo "Optimizing Laravel application..."
php /var/www/html/artisan optimize;

echo "Running startup commands for $SERVICE..."
php /var/www/html/artisan compose:run-startup-commands "$SERVICE"

Expand Down
1 change: 1 addition & 0 deletions src/Commands/RunStartupCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class RunStartupCommands extends Command

protected $defaults = [
'php' => [
'optimize',
'storage:link',
'migrate' => ['--force' => true],
'config:clear',
Expand Down

0 comments on commit 185f6c2

Please sign in to comment.