Skip to content

Commit

Permalink
Added Laravel exception handler with whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Aug 16, 2024
1 parent 9397ee7 commit 5e5c0a6
Show file tree
Hide file tree
Showing 72 changed files with 2,326 additions and 962 deletions.
4 changes: 4 additions & 0 deletions .dev/.env
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,7 @@ LEAN_OIDC_CLIEND_SECRET=
#LEAN_OIDC_FIELD_EMAIL=0.email
#
#LEAN_MARKETPLACE_URL='https://marketplace.staging.leantime.io'

## Redis (for Session storage and cache)
#LEAN_USE_REDIS = true #Set to true to use redis as Session cache
#LEAN_REDIS_URL = 'tcp://redis:6379' #Add url path such as tcp://1.2.3.4:6379
8 changes: 4 additions & 4 deletions .dev/dev-apache-site.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/public

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ErrorLog /var/www/html/logs/apacheError.log
CustomLog /var/www/html/logs/access.log combined
</VirtualHost>

<VirtualHost *:443>
Expand All @@ -16,6 +16,6 @@

SetEnv HTTPS "on"

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ErrorLog /var/www/html/logs/apacheError.log
CustomLog /var/www/html/logs/access.log combined
</VirtualHost>
2 changes: 1 addition & 1 deletion .dev/dev-apache2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ HostnameLookups Off
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log
ErrorLog /var/www/html/logs/apacheError.log

#
# LogLevel: Control the severity of messages logged to the error_log.
Expand Down
12 changes: 9 additions & 3 deletions .dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ services:
leantime-dev:
build: .
ports:
- "8080"
- "443"
- "8888:8080"
- "8443:443"
volumes:
- "../:/var/www/html"
- "./xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"
Expand All @@ -33,6 +33,12 @@ services:
condition: service_healthy
networks:
- leantime
redis:
image: redis:4.0
ports:
- "6379"
networks:
- leantime

db:
image: mysql:8.0
Expand Down Expand Up @@ -78,7 +84,7 @@ services:
phpmyadmin:
image: phpmyadmin
ports:
- "80"
- "8082"
environment:
- PMA_HOST=db
- PMA_PORT=3306
Expand Down
2 changes: 1 addition & 1 deletion .dev/dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1-apache
FROM php:8.2-apache

COPY ./dev-apache2.conf /etc/apache2/apache2.conf
COPY ./dev-ports.conf /etc/apache2/ports.conf
Expand Down
4 changes: 2 additions & 2 deletions .dev/xdebug.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ zend_extension=xdebug

[xdebug]
xdebug.mode=debug
;xdebug.discover_client_host=1
xdebug.discover_client_host=1
xdebug.client_host=host.docker.internal; do not touch
xdebug.start_with_request=yes
xdebug.client_port=9003
xdebug.idekey="PHPSTORM"
xdebug.log=/var/log/xdebug/xdebug.log
xdebug.log=/var/www/html/logs/xdebug.log
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,3 @@ config/.env

# Local Dev Files
.dev/docker-compose.local.yaml
logs/error.log
119 changes: 119 additions & 0 deletions .idea/blade.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/laravel-idea.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions .idea/leantime-oss.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5e5c0a6

Please sign in to comment.