mirror of
https://github.com/jbcr/core.git
synced 2026-04-24 00:58:09 +02:00
Ensure installation of Bolt Assets on composer update
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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') &&
|
||||
|
||||
Reference in New Issue
Block a user