Add debian rules
ogdhcp/pipeline/head There was a failure building this commit Details

new_files_placement
Nicolas Arenas 2025-03-25 08:43:28 +01:00
parent 00cb244286
commit ec97f1b7bd
1 changed files with 6 additions and 4 deletions

10
debian/rules vendored
View File

@ -21,7 +21,9 @@
override_dh_auto_build:
cd api; \
rm -rf var/cache/*; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer update; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer install; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer dump-env prod; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer update doctrine/dbal;
mkdir -p bin/; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer require symfony/flex --no-interaction; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer update --no-interaction; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer install --no-interaction; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer dump-env prod --no-interaction; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer update doctrine/dbal --no-interaction; \