Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ LOG_CHANNEL=stack
LOG_LEVEL=debug

# Banco de dados local da aplicação
DB_CONNECTION=mysql
DB_HOST=localhost
DB_CONNECTION=mariadb
DB_HOST=mariadb
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
DB_DATABASE=empresta
DB_USERNAME=empresta
DB_PASSWORD=empresta

# LARAVEL TOOLS #########################################
# https://github.com/uspdev/laravel-tools
Expand Down Expand Up @@ -151,4 +151,10 @@ WSFOTO_DISABLE=0
#MULTIPLOS_MATERIAIS=true

# Habilita a tecla Enter para submeter o fomulário de empréstimo de material. default=0
#HABILITAR_ENTER=1
#HABILITAR_ENTER=1

# Dusk
APP_URL=http://empresta
DUSK_DRIVER_URL='http://selenium:4444/wd/hub'
DUSK_START_MAXIMIZED=true
DUSK_HEADLESS_DISABLED=true
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":2,"defects":{"Tests\\Browser\\ExampleTest::test_basic_example":8,"Tests\\Browser\\IndexTest::test_example":7},"times":{"Tests\\Browser\\ExampleTest::test_basic_example":0.221,"Tests\\Browser\\IndexTest::test_example":1.793}}
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM uspdev/uspdev-php-apache:8.4

RUN sed -i 's|/var/www/html|/var/www/html/public|' \
/etc/apache2/sites-available/000-default.conf

USER www-data

COPY --chown=www-data . .

RUN composer install \
--no-dev \
--optimize-autoloader \
--no-interaction

CMD ["apache2-foreground"]
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
"uspdev/wsfoto": "^2.0"
},
"require-dev": {
"spatie/laravel-ignition": "^2.0",
"fakerphp/faker": "^1.9.1",
"laravel/dusk": "^8.6",
"laravel/sail": "^1.0.1",
"lucascudo/laravel-pt-br-localization": "^1.2",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^8.1",
"phpunit/phpunit": "^11.0"
"phpunit/phpunit": "^11.0",
"spatie/laravel-ignition": "^2.0"
},
"config": {
"optimize-autoloader": true,
Expand Down
Loading