Skip to content

Commit

Permalink
fix: build script for Vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny authored Nov 2, 2024
1 parent 5f0c833 commit d68093b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions scripts/cecil-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,23 @@ case $RUNNING_ON in
fi
;;
"Vercel")
yum install -y amazon-linux-extras
echo "Installing PHP ${PHP_VERSION}..."
amazon-linux-extras install -y php$PHP_VERSION
amazon-linux-extras enable php$PHP_VERSION
yum clean metadata
echo "Installing Gettext..."
yum install -y gettext
yum install gettext
echo "Installing Sodium..."
yum install -y libsodium # required by Box
yum install libsodium # required by Box
echo "Installing PHP extensions..."
yum install -y php-{cli,mbstring,dom,xml,intl,gettext,gd,imagick,sodium}
yum install php php-{cli,mbstring,dom,xml,intl,gettext,gd,imagick,sodium}
if [ "$VERCEL_INSTALL_OPTIM" = "true" ]; then
echo "Installing images optimization libraries..."
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y jpegoptim
yum install -y pngquant
yum install -y gifsicle
yum install -y libwebp-tools
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install jpegoptim
yum install pngquant
yum install gifsicle
yum install libwebp-tools
fi
if [ "$VERCEL_ENV" = "production" ]; then
CONTEXT="production"
Expand Down

0 comments on commit d68093b

Please sign in to comment.