Compare commits

...

7 Commits

Author SHA1 Message Date
f34265ab8e
still retarded ngl
All checks were successful
build / build (push) Successful in 4m45s
2024-12-06 15:04:09 +01:00
e436709ea3
maybe fix some stuff idek
All checks were successful
build / build (push) Successful in 4m45s
2024-12-06 14:56:15 +01:00
58ab9e2154
some debugging
All checks were successful
build / build (push) Successful in 4m8s
2024-12-06 14:41:25 +01:00
c58d2445fa
im fucking stupid
All checks were successful
build / build (push) Successful in 4m8s
2024-12-06 14:31:28 +01:00
3683edd121
change some stuff
Some checks failed
build / build (push) Failing after 3m48s
2024-12-06 14:24:30 +01:00
45f1a62a76
test
All checks were successful
build / build (push) Successful in 3m59s
2024-12-06 14:09:52 +01:00
e0f5fe2524
outsource env vars to host vars 2024-12-06 14:09:15 +01:00
4 changed files with 36 additions and 7 deletions

2
.env
View File

@ -19,4 +19,4 @@ APP_ENV=dev
APP_SECRET=bfc9c288ee3dcce80dec8622c2870f27
###< symfony/framework-bundle ###
DATA_DIR='/var/www/html/data'
DATA_DIR=/var/www/data

View File

@ -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

View File

@ -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 .

23
src/test.php Normal file
View File

@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace App;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
use Symfony\Component\HttpKernel\KernelEvents;
class test implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return [KernelEvents::EXCEPTION => 'x'];
}
public function x(ExceptionEvent $event)
{
dd($event->getThrowable());
}
}