forked from projects/file-explorer
Compare commits
4 Commits
feature/do
...
4826805f57
Author | SHA1 | Date | |
---|---|---|---|
4826805f57 | |||
ca9a18987b | |||
0e53f0a199 | |||
831466cba9
|
@ -7,8 +7,8 @@ xdebug_enabled: false
|
||||
additional_hostnames: []
|
||||
additional_fqdns: []
|
||||
database:
|
||||
type: mariadb
|
||||
version: "10.11"
|
||||
type: postgres
|
||||
version: "17"
|
||||
use_dns_when_possible: true
|
||||
composer_version: "2"
|
||||
web_environment: []
|
||||
|
2
.env
2
.env
@ -19,4 +19,4 @@ APP_ENV=dev
|
||||
APP_SECRET=bfc9c288ee3dcce80dec8622c2870f27
|
||||
###< symfony/framework-bundle ###
|
||||
|
||||
DATA_DIR=/var/www/data
|
||||
DATA_DIR='/var/www/html/data'
|
||||
|
@ -1,16 +1,16 @@
|
||||
name: build
|
||||
on: push
|
||||
# pull_request:
|
||||
# types:
|
||||
# - closed
|
||||
# branches:
|
||||
# - main
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: remote
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: docker/login-action@v1
|
||||
- uses: https://git.simonis.lol/actions/checkout@v4
|
||||
- uses: https://git.simonis.lol/actions/login@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
|
||||
|
@ -18,9 +18,3 @@ 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
23
src/test.php
@ -1,23 +0,0 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user