File tree 4 files changed +12
-7
lines changed
4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ RUN phpize \
32
32
33
33
WORKDIR /var/www/html
34
34
COPY . 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"
36
38
37
39
WORKDIR /var/www/html/phpredmin/public
38
40
Original file line number Diff line number Diff line change 1
1
# 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 1
1
variables_order = " EGPCS"
2
+ log_errors = On
3
+ error_log = /dev/stderr
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ # Copy PHPREDMIN env variables to .profile for cron jobs
4
+ printenv | grep PHPREDMIN | xargs -rl echo " export$1 " >> $HOME /.profile
5
+
3
6
# Run gearman job server
4
7
gearmand -d
5
8
# Run cron daemon
6
9
cron
7
- # Run gearman work
8
- php index.php gearman/index &
9
- # Start web server
10
- apache2-foreground &
11
10
11
+ # Trap sigkill
12
12
trap " pkill gearmand && pkill -WINCH apache2" TERM
13
13
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