Using php preloading on platform.sh

Created on 12 April 2022, about 2 years ago
Updated 1 April 2023, about 1 year ago

Problem/Motivation

Hello, I'm just wondering whether someone was able to successfully enable php preloading on platform.sh. I'm running into deploy fails and support team doesn't seem to find the issue:

Building application 'efs' (runtime type: php:7.4, tree: e3a1cf4)

  Generating runtime configuration.
  Installing build dependencies...

    Installing php build dependencies: composer/composer
    W: PHP Warning:  PHP Startup: failed to open stream: No such file or directory in /mnt/source/preloader.php on line 47
    W: PHP Fatal error:  PHP Startup: Failed opening required '/app/web/autoload.php' (include_path='.:') in /mnt/source/preloader.php on line 47

    Warning: PHP Startup: failed to open stream: No such file or directory in /mnt/source/preloader.php on line 47

    Fatal error: PHP Startup: Failed opening required '/app/web/autoload.php' (include_path='.:') in /mnt/source/preloader.php on line 47

  E: Error building project: `composer` could not be run.

E: Error: Unable to build application, aborting.

I've generated the preload script with the preloader module.

💬 Support request
Status

Active

Version

1.0

Component

Miscellaneous

Created by

🇸🇮Slovenia useernamee Ljubljana

Live updates comments and jobs are added and updated live.
  • PHP 7.4

    The issue particularly affects sites running on PHP version 7.4.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024