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

Composer list scripts fails #417

Closed
Engerim opened this issue Feb 12, 2018 · 1 comment
Closed

Composer list scripts fails #417

Engerim opened this issue Feb 12, 2018 · 1 comment

Comments

@Engerim
Copy link

Engerim commented Feb 12, 2018

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)
@chingor13
Copy link
Member

Fixed upstream by composer. Released new runtime with fix in 2018-04-16-14-10 release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants