Skip to content
This repository was archived by the owner on Dec 5, 2021. It is now read-only.

Commit 87f55b5

Browse files
committed
wip
1 parent c660648 commit 87f55b5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

bin/compile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ if [ -f www/Procfile ]; then
3131
fi
3232

3333
# 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+
3539
rm -rf $DIR
3640
if [ -d $CACHE_DIR/$DIR ]; then
3741
cp -r $CACHE_DIR/$DIR $DIR
@@ -40,13 +44,15 @@ done
4044

4145
# install apache if needed
4246
if [ ! -d $APACHE_PATH ] || [ `cat ${APACHE_PATH}/VERSION` != $APACHE_VERSION ]; then
47+
[ -d $APACHE_PATH ] && rm -rf $APACHE_PATH
4348
APACHE_URL="https://s3.amazonaws.com/php-lp-tmaher/apache-$APACHE_VERSION.tar.gz"
4449
echo "-----> Bundling Apacheeee version $APACHE_VERSION"
4550
curl --silent --max-time 60 --location $APACHE_URL | tar xz
4651
fi
4752

4853
# install php if needed
4954
if [ ! -d $PHP_PATH ] || [ `cat ${PHP_PATH}/VERSION` != $PHP_VERSION ]; then
55+
[ -d $PHP_PATH ] && rm -rf $PHP_PATH
5056
PHP_URL="https://s3.amazonaws.com/php-lp-tmaher/php-$PHP_VERSION.tar.gz"
5157
echo "-----> Bundling PHP version $PHP_VERSION"
5258
curl --silent --max-time 60 --location $PHP_URL | tar xz

conf/php.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ error_reporting = E_ALL & ~E_NOTICE
528528
; Development Value: On
529529
; Production Value: Off
530530
; http://php.net/display-errors
531-
display_errors = On
531+
display_errors = Off
532532

533533
; The display of errors which occur during PHP's startup sequence are handled
534534
; separately from display_errors. PHP's default behavior is to suppress those
@@ -994,7 +994,7 @@ extension=soap.so
994994
[Date]
995995
; Defines the default timezone used by the date functions
996996
; http://php.net/date.timezone
997-
;date.timezone =
997+
date.timezone = UTC
998998

999999
; http://php.net/date.default-latitude
10001000
;date.default_latitude = 31.7667

0 commit comments

Comments
 (0)