From 36e73c03eab4f7011c8fda28f8c7e18f01934ef8 Mon Sep 17 00:00:00 2001 From: Alta Date: Fri, 21 May 2021 17:12:37 +0700 Subject: [PATCH] Create install_grpc.sh add php gRPC extension when using firebase package --- .platform/hooks/prebuild/install_grpc.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .platform/hooks/prebuild/install_grpc.sh diff --git a/.platform/hooks/prebuild/install_grpc.sh b/.platform/hooks/prebuild/install_grpc.sh new file mode 100644 index 0000000..56ee952 --- /dev/null +++ b/.platform/hooks/prebuild/install_grpc.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# Some packages use PHP client libraries for gRPC-enabled APIs +# Uncomment the following lines to install gRPC on each deploy. + +# set +e + +# sudo amazon-linux-extras enable epel + +# sudo yum clean metadata + +# sudo yum install -y epel-release + +# sudo yum install -y php-devel php-pear gcc zlib-devel + +# printf '\n' | : sudo pecl install grpc