Dallas-Makerspace / calendar

https://calendar.dallasmakerspace.org/
BSD 3-Clause "New" or "Revised" License
8 stars 20 forks source link

chore: easier local development (logs mounted locally, documentation, *nix permissions) #156

Closed excalbian closed 1 year ago

excalbian commented 1 year ago

Fixed the binding of the logs volume in the docker-compose so /var/www/logs in the container now maps to the local logs folder / directory. Also mounted /var/logs so xdebug.log and the apache2 logs are available locally. Created a docs/local-dev.md with tips and tricks (+ FAQ) for local development and a setup.sh for *nix like systems to setup folder permissions correctly.

For example, this is now what you'll see in the browser with a failed login (note the lack of errors about writing the error.log!):

image

Here is what the same error created in the logs/error.log (note with the latest update this will be in logs/www/error.log)

image

(edited 6 Mar to reflect change of scope)