Update Monolog action level to info, adjust Dockerfile permissions and logging configuration, and set supervisord user to root
This commit is contained in:
5
assets/app.js
Normal file
5
assets/app.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// Placeholder front-end entrypoint to satisfy importmap & asset mapper.
|
||||
// You can add real JS behavior here; for now we only register a noop.
|
||||
|
||||
console.debug('Tonehaus assets initialized');
|
||||
|
||||
@@ -42,7 +42,7 @@ when@prod:
|
||||
handlers:
|
||||
main:
|
||||
type: fingers_crossed
|
||||
action_level: error
|
||||
action_level: info
|
||||
handler: nested
|
||||
excluded_http_codes: [404, 405]
|
||||
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
|
||||
|
||||
@@ -125,7 +125,9 @@ COPY docker/prod/entrypoint.sh /entrypoint.sh
|
||||
|
||||
RUN chmod +x /entrypoint.sh \
|
||||
&& mkdir -p /run/nginx /var/log/supervisor \
|
||||
&& chown -R www-data:www-data /var/www/html
|
||||
&& chown -R www-data:www-data /run/nginx /var/log/supervisor /var/www/html
|
||||
RUN mkdir -p /var/lib/nginx /var/log/nginx && chown -R www-data:www-data /var/lib/nginx /var/log/nginx
|
||||
RUN sed -i 's|^error_log =.*|error_log = /proc/self/fd/2|' /usr/local/etc/php-fpm.conf
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
nodaemon=true
|
||||
logfile=/var/log/supervisor/supervisord.log
|
||||
pidfile=/var/run/supervisord.pid
|
||||
user=root
|
||||
|
||||
[program:php-fpm]
|
||||
command=/usr/local/sbin/php-fpm --nodaemonize
|
||||
|
||||
14
importmap.php
Normal file
14
importmap.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Importmap configuration for the asset mapper.
|
||||
*
|
||||
* The single "app" entrypoint is enough for Bootstrap + custom JS tweaks.
|
||||
*/
|
||||
return [
|
||||
'app' => [
|
||||
'path' => './assets/app.js',
|
||||
'entrypoint' => true,
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user