···322323 # Run kimai:install to ensure database is created or updated.
324 # Note that kimai:update is an alias to kimai:install.
325- ${pkg hostName cfg}/bin/console kimai:install
0000326 '';
327328 serviceConfig = {
···322323 # Run kimai:install to ensure database is created or updated.
324 # Note that kimai:update is an alias to kimai:install.
325+ ${pkg hostName cfg}/bin/console kimai:install --no-cache
326+ # Clear cache and warmup cache separately, to avoid "Cannot declare
327+ # class App\Entity\Timesheet" error on first init after upgrade.
328+ ${pkg hostName cfg}/bin/console cache:clear --env=prod
329+ ${pkg hostName cfg}/bin/console cache:warmup --env=prod
330 '';
331332 serviceConfig = {