7 Commits

Author SHA1 Message Date
f34265ab8e still retarded ngl 2024-12-06 15:04:09 +01:00
e436709ea3 maybe fix some stuff idek 2024-12-06 14:56:15 +01:00
58ab9e2154 some debugging 2024-12-06 14:41:25 +01:00
c58d2445fa im fucking stupid 2024-12-06 14:31:28 +01:00
3683edd121 change some stuff 2024-12-06 14:24:30 +01:00
45f1a62a76 test 2024-12-06 14:09:52 +01:00
e0f5fe2524 outsource env vars to host vars 2024-12-06 14:09:15 +01:00
6 changed files with 44 additions and 15 deletions

View File

@ -7,8 +7,8 @@ xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
database:
type: postgres
version: "17"
type: mariadb
version: "10.11"
use_dns_when_possible: true
composer_version: "2"
web_environment: []

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,16 +1,16 @@
name: build
on:
pull_request:
types:
- closed
branches:
- main
on: push
# pull_request:
# types:
# - closed
# branches:
# - main
jobs:
build:
runs-on: remote
runs-on: ubuntu-latest
steps:
- uses: https://git.simonis.lol/actions/checkout@v4
- uses: https://git.simonis.lol/actions/login@v1
- uses: actions/checkout@v4
- uses: docker/login-action@v1
with:
registry: git.simonis.lol
username: ${{ vars.DOCKER_USER }}
@ -20,4 +20,4 @@ jobs:
run: docker build -t git.simonis.lol/sites/file-explorer:latest .
- name: push
run: docker push git.simonis.lol/sites/file-explorer:latest
run: docker push git.simonis.lol/sites/file-explorer: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());
}
}

View File

@ -3,7 +3,7 @@
{% block title %}Home{% endblock %}
{% block body %}
<center class="container mt-5 mx-auto">
<center class="container mt-5">
{% include '_partials/_table.html.twig' %}
</center>
{% endblock %}
{% endblock %}