This repository was archived by the owner on Dec 5, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,11 @@ if [ -f www/Procfile ]; then
31
31
fi
32
32
33
33
# unpack cache
34
- for DIR in $APACHE_PATH $PHP_PATH ; do
34
+ for COMP in APACHE PHP; do
35
+ DIR=` eval echo ' $' ${COMP} _PATH`
36
+ VERSION=` eval echo ' $' ${COMP} _VERSION`
37
+ [ ` cat $CACHE_DIR /$DIR /VERSION 2> /dev/null` == " $VERSION " ] || continue
38
+
35
39
rm -rf $DIR
36
40
if [ -d $CACHE_DIR /$DIR ]; then
37
41
cp -r $CACHE_DIR /$DIR $DIR
40
44
41
45
# install apache if needed
42
46
if [ ! -d $APACHE_PATH ] || [ ` cat ${APACHE_PATH} /VERSION` != $APACHE_VERSION ]; then
47
+ [ -d $APACHE_PATH ] && rm -rf $APACHE_PATH
43
48
APACHE_URL=" https://s3.amazonaws.com/php-lp-tmaher/apache-$APACHE_VERSION .tar.gz"
44
49
echo " -----> Bundling Apacheeee version $APACHE_VERSION "
45
50
curl --silent --max-time 60 --location $APACHE_URL | tar xz
46
51
fi
47
52
48
53
# install php if needed
49
54
if [ ! -d $PHP_PATH ] || [ ` cat ${PHP_PATH} /VERSION` != $PHP_VERSION ]; then
55
+ [ -d $PHP_PATH ] && rm -rf $PHP_PATH
50
56
PHP_URL=" https://s3.amazonaws.com/php-lp-tmaher/php-$PHP_VERSION .tar.gz"
51
57
echo " -----> Bundling PHP version $PHP_VERSION "
52
58
curl --silent --max-time 60 --location $PHP_URL | tar xz
Original file line number Diff line number Diff line change @@ -528,7 +528,7 @@ error_reporting = E_ALL & ~E_NOTICE
528
528
; Development Value: On
529
529
; Production Value: Off
530
530
; http://php.net/display-errors
531
- display_errors = On
531
+ display_errors = Off
532
532
533
533
; The display of errors which occur during PHP's startup sequence are handled
534
534
; separately from display_errors. PHP's default behavior is to suppress those
@@ -994,7 +994,7 @@ extension=soap.so
994
994
[Date]
995
995
; Defines the default timezone used by the date functions
996
996
; http://php.net/date.timezone
997
- ; date.timezone =
997
+ date.timezone = UTC
998
998
999
999
; http://php.net/date.default-latitude
1000
1000
; date.default_latitude = 31.7667
You can’t perform that action at this time.
0 commit comments