dimanche 13 avril 2014

php - commande de la console AWS Elastic Beanstalk symfony ne fonctionne ne pas dans le fichier de configuration de EB - Stack Overflow


My symfony.config file contains the following container_command:


container_commands:
01_migrate:
command: php app/console doctrine:schema:update --force

php app/console doctrine:schema:update --force works fine through ssh (with sudo), but when I deploy the app via git aws.push I get the following error:


[Instance: i-0123456789 Module: AWSEBAutoScalingGroup ConfigSet: null]
Failed on instance with return code: 1 Output: Error occurred during build:
Command 01_schemaupdate failed .

The only thing I can think of is permissions, but I thought that the config commands are run as the webapp user. Adding sudo doesn't help either. Any ideas?



My symfony.config file contains the following container_command:


container_commands:
01_migrate:
command: php app/console doctrine:schema:update --force

php app/console doctrine:schema:update --force works fine through ssh (with sudo), but when I deploy the app via git aws.push I get the following error:


[Instance: i-0123456789 Module: AWSEBAutoScalingGroup ConfigSet: null]
Failed on instance with return code: 1 Output: Error occurred during build:
Command 01_schemaupdate failed .

The only thing I can think of is permissions, but I thought that the config commands are run as the webapp user. Adding sudo doesn't help either. Any ideas?


0 commentaires:

Enregistrer un commentaire