From aa8f9236d1d6b68df5980f91345705efa415ec8a Mon Sep 17 00:00:00 2001 From: Henning Benum <82902462+Kamelon7@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:13:17 +0100 Subject: [PATCH] Back up vapor.yml to do an asset-less deploy (#2636) --- sourcecode/apis/contentauthor/vapor.yml | 3 --- sourcecode/apis/contentauthor/vapor.yml.bak | 17 +++++++++++++++++ sourcecode/hub/vapor.yml | 4 ---- sourcecode/hub/vapor.yml.bak | 21 +++++++++++++++++++++ 4 files changed, 38 insertions(+), 7 deletions(-) create mode 100644 sourcecode/apis/contentauthor/vapor.yml.bak create mode 100644 sourcecode/hub/vapor.yml.bak diff --git a/sourcecode/apis/contentauthor/vapor.yml b/sourcecode/apis/contentauthor/vapor.yml index fb1c25d02a..0f3bafe5a8 100644 --- a/sourcecode/apis/contentauthor/vapor.yml +++ b/sourcecode/apis/contentauthor/vapor.yml @@ -5,9 +5,6 @@ environments: memory: 1024 cli-memory: 512 runtime: docker - domain: ca.edlibdev.net - network: edlib-cerpus-test - cache: edlib-cerpus-test-cache build: - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-interaction --prefer-dist --no-dev --optimize-autoloader' - 'php artisan optimize' diff --git a/sourcecode/apis/contentauthor/vapor.yml.bak b/sourcecode/apis/contentauthor/vapor.yml.bak new file mode 100644 index 0000000000..fb1c25d02a --- /dev/null +++ b/sourcecode/apis/contentauthor/vapor.yml.bak @@ -0,0 +1,17 @@ +id: 55301 +name: edlib-cerpus-ca +environments: + test: + memory: 1024 + cli-memory: 512 + runtime: docker + domain: ca.edlibdev.net + network: edlib-cerpus-test + cache: edlib-cerpus-test-cache + build: + - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-interaction --prefer-dist --no-dev --optimize-autoloader' + - 'php artisan optimize' + - 'php artisan event:cache' + - 'npm ci && npm run build && rm -rf node_modules' + deploy: + - 'php artisan migrate --force' diff --git a/sourcecode/hub/vapor.yml b/sourcecode/hub/vapor.yml index 3fa6c5380c..c0240f4601 100644 --- a/sourcecode/hub/vapor.yml +++ b/sourcecode/hub/vapor.yml @@ -5,10 +5,6 @@ environments: memory: 1024 cli-memory: 512 runtime: docker - domain: hub.edlibdev.net - network: edlib-cerpus-test - database: edlib-cerpus-test-db - cache: edlib-cerpus-test-cache build: - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-interaction --prefer-dist --no-dev --optimize-autoloader' - 'php artisan optimize' diff --git a/sourcecode/hub/vapor.yml.bak b/sourcecode/hub/vapor.yml.bak new file mode 100644 index 0000000000..3fa6c5380c --- /dev/null +++ b/sourcecode/hub/vapor.yml.bak @@ -0,0 +1,21 @@ +id: 55300 +name: edlib-cerpus-hub +environments: + test: + memory: 1024 + cli-memory: 512 + runtime: docker + domain: hub.edlibdev.net + network: edlib-cerpus-test + database: edlib-cerpus-test-db + cache: edlib-cerpus-test-cache + build: + - 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-interaction --prefer-dist --no-dev --optimize-autoloader' + - 'php artisan optimize' + - 'php artisan event:cache' + - 'npm ci && npm run build && rm -rf node_modules' + deploy: + - 'php artisan migrate --force' + - "php artisan scout:delete-index 'App\\Models\\Content'" + - 'php artisan scout:sync-index-settings' + - "php artisan scout:import 'App\\Models\\Content'"