我无法在cloud Foundry上部署symfony4项目。
我使用了manifet.yml文件
applications:
- name: mysymfonyapi
memory: 512M
instances: 1
buildpack: php_buildpack_modsec
运行cf push
命令后出现此错误:
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 0 installs, 0 updates, 2 removals
- Removing symfony/web-server-bundle (v4.2.4)
- Removing symfony/process (v4.2.4)
Generating autoload files
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!! Could not open input file: ./bin/console
!!
Script @auto-scripts was called via post-install-cmd
-----> Composer command failed
Traceback (most recent call last):
File "/tmp/buildpacks/9eb83110b979d1de7b0fd5b3abdfc92f/scripts/compile.py", line 61, in <module>
.from_build_pack('lib/additional_commands')
File "/tmp/buildpacks/9eb83110b979d1de7b0fd5b3abdfc92f/lib/build_pack_utils/builder.py", line 209, in extensions
process_extension(path, ctx, 'compile', process, args=[self])
File "/tmp/buildpacks/9eb83110b979d1de7b0fd5b3abdfc92f/lib/build_pack_utils/utils.py", line 69, in process_extension
success(getattr(extn, to_call)(*args))
File "/tmp/buildpacks/9eb83110b979d1de7b0fd5b3abdfc92f/extensions/composer/extension.py", line 443, in compile
return composer.compile(install)
File "/tmp/buildpacks/9eb83110b979d1de7b0fd5b3abdfc92f/lib/extension_helpers.py", line 154, in compile
self._compile(install)
File "/tmp/buildpacks/9eb83110b979d1de7b0fd5b3abdfc92f/extensions/composer/extension.py", line 196, in _compile
File "/tmp/buildpacks/9eb83110b979d1de7b0fd5b3abdfc92f/extensions/composer/extension.py", line 343, in run
File "/tmp/buildpacks/9eb83110b979d1de7b0fd5b3abdfc92f/extensions/composer/extension.py", line 389, in run
File "/tmp/buildpacks/9eb83110b979d1de7b0fd5b3abdfc92f/lib/build_pack_utils/runner.py", line 109, in stream_output
raise CalledProcessError(retcode, cmd)
self.run()
*self._ctx['COMPOSER_INSTALL_OPTIONS'])
shell=True)
build_pack_utils.runner.CalledProcessError: Command '<open file '<fdopen>', mode 'w' at 0x7fb92ea299c0>' returned non-zero exit status 1
Failed to compile droplet
我被困了好几天,请你帮忙。