Corrections and improvements. Split compose into two files.

This commit is contained in:
Jan Eitzinger
2021-06-15 16:45:15 +02:00
parent 632f4bf04f
commit f66a44ae5a
5 changed files with 48 additions and 33 deletions

View File

@@ -3,13 +3,16 @@
if [ "$APP_CLUSTERCOCKPIT_INIT" = true ]; then
rm -rf /var/www/symfony/* /var/www/symfony/.??*
git clone https://github.com/ClusterCockpit/ClusterCockpit .
composer install --no-dev --no-progress --optimize-autoloader
yarn install
yarn encore production
#php bin/console doctrine:schema:create --no-interaction
#php bin/console doctrine:migrations:migrate --no-interaction
#php bin/console doctrine:fix:load --no-interaction
if [ "$APP_ENV" = dev ]; then
composer install --no-progress --optimize-autoloader
yarn encore dev
else
composer install --no-dev --no-progress --optimize-autoloader
yarn encore production
fi
ln -s /var/lib/job-archive var/job-archive
fi