forked from projects/file-explorer
Compare commits
7 Commits
c1e1ab081f
...
feature/do
Author | SHA1 | Date | |
---|---|---|---|
f34265ab8e
|
|||
e436709ea3
|
|||
58ab9e2154
|
|||
c58d2445fa
|
|||
3683edd121
|
|||
45f1a62a76
|
|||
e0f5fe2524
|
@ -7,8 +7,8 @@ xdebug_enabled: false
|
|||||||
additional_hostnames: []
|
additional_hostnames: []
|
||||||
additional_fqdns: []
|
additional_fqdns: []
|
||||||
database:
|
database:
|
||||||
type: postgres
|
type: mariadb
|
||||||
version: "17"
|
version: "10.11"
|
||||||
use_dns_when_possible: true
|
use_dns_when_possible: true
|
||||||
composer_version: "2"
|
composer_version: "2"
|
||||||
web_environment: []
|
web_environment: []
|
||||||
|
2
.env
2
.env
@ -19,4 +19,4 @@ APP_ENV=dev
|
|||||||
APP_SECRET=bfc9c288ee3dcce80dec8622c2870f27
|
APP_SECRET=bfc9c288ee3dcce80dec8622c2870f27
|
||||||
###< symfony/framework-bundle ###
|
###< symfony/framework-bundle ###
|
||||||
|
|
||||||
DATA_DIR='/var/www/html/data'
|
DATA_DIR=/var/www/data
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
name: build
|
name: build
|
||||||
on:
|
on: push
|
||||||
pull_request:
|
# pull_request:
|
||||||
types:
|
# types:
|
||||||
- closed
|
# - closed
|
||||||
branches:
|
# branches:
|
||||||
- main
|
# - main
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: remote
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: https://git.simonis.lol/actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: https://git.simonis.lol/actions/login@v1
|
- uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: git.simonis.lol
|
registry: git.simonis.lol
|
||||||
username: ${{ vars.DOCKER_USER }}
|
username: ${{ vars.DOCKER_USER }}
|
||||||
@ -20,4 +20,4 @@ jobs:
|
|||||||
run: docker build -t git.simonis.lol/sites/file-explorer:latest .
|
run: docker build -t git.simonis.lol/sites/file-explorer:latest .
|
||||||
|
|
||||||
- name: push
|
- name: push
|
||||||
run: docker push git.simonis.lol/sites/file-explorer:latest
|
run: docker push git.simonis.lol/sites/file-explorer:latest
|
@ -18,3 +18,9 @@ RUN pecl install apcu && docker-php-ext-enable apcu
|
|||||||
|
|
||||||
WORKDIR /var/www/project
|
WORKDIR /var/www/project
|
||||||
RUN composer install --optimize-autoloader --no-suggest --no-progress
|
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
23
src/test.php
Normal 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());
|
||||||
|
}
|
||||||
|
}
|
@ -3,7 +3,7 @@
|
|||||||
{% block title %}Home{% endblock %}
|
{% block title %}Home{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<center class="container mt-5 mx-auto">
|
<center class="container mt-5">
|
||||||
{% include '_partials/_table.html.twig' %}
|
{% include '_partials/_table.html.twig' %}
|
||||||
</center>
|
</center>
|
||||||
{% endblock %}
|
{% endblock %}
|
Reference in New Issue
Block a user