Ensure installation of Bolt Assets on composer update

This commit is contained in:
Bob den Otter
2021-04-12 14:49:45 +02:00
parent ee6b23b3a7
commit ec8065d8d8
2 changed files with 5 additions and 5 deletions
+3 -4
View File
@@ -10,9 +10,10 @@ class PostInstallScript extends Script
{
parent::init('Running composer "post-install-cmd" scripts');
self::run('php bin/console bolt:copy-assets --ansi');
self::run('php bin/console cache:clear --no-warmup --ansi');
self::run('php bin/console assets:install --ansi');
self::run('php bin/console assets:install --symlink --relative public --ansi');
self::run('php bin/console bolt:copy-assets --ansi');
self::run('php bin/console extensions:configure --with-config --ansi');
// Only run, if the tables are initialised already, _and_ Doctrine thinks we need to
$migrationError = ! self::run('php bin/console bolt:info --tablesInitialised') &&
@@ -21,7 +22,5 @@ class PostInstallScript extends Script
if ($migrationError) {
self::$console->warning('Please run `php bin/console doctrine:migrations:migrate` to execute the database migrations.');
}
self::run('php bin/console extensions:configure --ansi');
}
}
+2 -1
View File
@@ -11,9 +11,10 @@ class PostUpdateScript extends Script
parent::init('Running composer "post-update-cmd" scripts');
self::run('php vendor/bobdenotter/yaml-migrations/bin/yaml-migrate process -c vendor/bolt/core/yaml-migrations/config.yaml -v');
self::run('php bin/console extensions:configure --with-config --ansi');
self::run('php bin/console cache:clear --no-warmup --ansi');
self::run('php bin/console assets:install --symlink --relative public --ansi');
self::run('php bin/console bolt:copy-assets --ansi');
self::run('php bin/console extensions:configure --with-config --ansi');
// Only run, if the tables are initialised already, _and_ Doctrine thinks we need to
$migrationError = ! self::run('php bin/console bolt:info --tablesInitialised') &&