diff --git a/.env b/.env index 954023e..ae2fca8 100644 --- a/.env +++ b/.env @@ -19,4 +19,4 @@ APP_ENV=dev APP_SECRET=bfc9c288ee3dcce80dec8622c2870f27 ###< symfony/framework-bundle ### -DATA_DIR='/var/www/html/data' +DATA_DIR=/var/www/data diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a244a4c..4908122 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,10 +1,10 @@ name: build -on: - pull_request: - types: - - closed - branches: - - main +on: push +# pull_request: +# types: +# - closed +# branches: +# - main jobs: build: runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index 40cba40..496235d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,3 +18,9 @@ RUN pecl install apcu && docker-php-ext-enable apcu WORKDIR /var/www/project RUN composer install --optimize-autoloader --no-suggest --no-progress +RUN composer dump-env prod +RUN php bin/console tailwind:build +RUN php bin/console asset-map:compile +RUN mkdir -p /var/www/data +RUN chown -R www-data:www-data /var/www/data +RUN chown -R www-data:www-data . diff --git a/src/test.php b/src/test.php new file mode 100644 index 0000000..0f62194 --- /dev/null +++ b/src/test.php @@ -0,0 +1,23 @@ + 'x']; + } + + public function x(ExceptionEvent $event) + { + dd($event->getThrowable()); + } +} \ No newline at end of file