Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Composer list scripts fails #417

@Engerim

Description

@Engerim

Composer 1.6.3 has a bug inside for the list scripts command. So this Command fails everytime with an exception and also no post-deploy-cmd is triggered. One way to fix this is downgrade to composer 1.6.2 or the entrypoint script looks directly in the composer.json if the post-deploy-cmd is added.

composer/composer#7069

+ /bin/bash /build-scripts/move-config-files.sh
Moving user supplied config files...
+ /usr/sbin/nginx -t -c /etc/nginx/nginx.conf
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
+ '[' -n '' ']'
+ '[' -f /app/composer.json ']'
+ grep -q post-deploy-cmd
+ su www-data -c 'php /usr/local/bin/composer --no-ansi run-script -l'
scripts:

                                                                  
  [Symfony\Component\Console\Exception\CommandNotFoundException]  
  Command "post-install-cmd" is not defined.                      
                                                                  

run-script [--timeout TIMEOUT] [--dev] [--no-dev] [-l|--list] [--] [<script>] [<args>]...

+ /bin/bash /build-scripts/lockdown.sh
Locking down the document root...
+ exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
2018-02-12 14:03:51,413 CRIT Supervisor running as root (no user in config file)
2018-02-12 14:03:51,434 INFO supervisord started with pid 1
2018-02-12 14:03:52,436 INFO spawned: 'php-fpm' with pid 39
2018-02-12 14:03:52,437 INFO spawned: 'nginx' with pid 40
[12-Feb-2018 14:03:52] NOTICE: fpm is running, pid 39
[12-Feb-2018 14:03:52] NOTICE: ready to handle connections
2018-02-12 14:03:53,541 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-02-12 14:03:53,542 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions