diff --git a/bin/compile b/bin/compile index 5a58698c6..e4d018056 100755 --- a/bin/compile +++ b/bin/compile @@ -226,7 +226,12 @@ mkdir -p $COMPOSER_HOME status "Bootstrapping..." -s3_url="https://lang-php.s3.us-east-1.amazonaws.com/dist-${STACK}-stable/" +if [[ $STACK == heroku-2[02] ]]; then + stack_locator=$STACK +else + stack_locator="${STACK}-$(dpkg --print-architecture)" +fi +s3_url="https://lang-php.s3.us-east-1.amazonaws.com/dist-${stack_locator}-stable/" # prepend the default repo to the list configured by the user # list of repositories to use is in ascening order of precedence export_env_dir "$env_dir" '^HEROKU_PHP_PLATFORM_REPOSITORIES$'