File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ RUN phpize \
3232
3333WORKDIR /var/www/html
3434COPY . phpredmin/
35- RUN mkdir phpredmin/logs && chown www-data:www-data phpredmin/logs -R
35+
36+ ENV PHPREDMIN_LOG_DRIVER="std"
37+ ENV PHPREDMIN_LOG_THRESHOLD="4"
3638
3739WORKDIR /var/www/html/phpredmin/public
3840
Original file line number Diff line number Diff line change 11# Cron tab for phpredmin to collect redis statistics
2- * * * * * root cd /var/www/html/phpredmin/public && /usr/local/bin/php index.php cron/index
2+ * * * * * root . /root/.profile; cd /var/www/html/phpredmin/public && /usr/local/bin/php index.php cron/index > /dev/stdout 2>&1
Original file line number Diff line number Diff line change 11variables_order = " EGPCS"
2+ log_errors = On
3+ error_log = /dev/stderr
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ # Copy PHPREDMIN env variables to .profile for cron jobs
4+ printenv | grep PHPREDMIN | xargs -rl echo " export$1 " >> $HOME /.profile
5+
36# Run gearman job server
47gearmand -d
58# Run cron daemon
69cron
7- # Run gearman work
8- php index.php gearman/index &
9- # Start web server
10- apache2-foreground &
1110
11+ # Trap sigkill
1212trap " pkill gearmand && pkill -WINCH apache2" TERM
1313
14- wait
14+ # Run gearman work & Start web server
15+ php index.php gearman/index & apache2-foreground
You can’t perform that action at this time.
0 commit comments