amazon web services - Changing location of beforeInstall hook script throws "Script does not exist" error at beforeInstall step during deployment -


i had working setup begin with. following appspec.yml file -

version: 0.0 os: linux files:   - source: beforeinstall.php     destination: /var/cake_1.2.0.6311-beta   - source: beforeinstall.sh     destination: /var/cake_1.2.0.6311-beta hooks:   beforeinstall:     - location: beforeinstall.sh 

note - copying beforeinstall.sh , php files because want copy changes made them propagated ec2 instances automatically (even though reflects in next build)

at point, had beforeinstall.sh , php files @ location in ec2 instances -

/var/cake_1.2.0.6311-beta/ 

then wanted move these inside deployment directory in ec2 instances. so, created files beforeinstall.sh , php manually, in /var/cake_1.2.0.6311-beta/deployment/ directory in instances , modified appspec.yml file -

version: 0.0 os: linux files:   - source: beforeinstall.php     destination: /var/cake_1.2.0.6311-beta/deployment   - source: beforeinstall.sh     destination: /var/cake_1.2.0.6311-beta/deployment hooks:   beforeinstall:     - location: deployment/beforeinstall.sh 

but, getting following error ar beforeinstall step -

error code scriptmissing script name deployment/beforeinstall.sh message script not exist @ specified location: /opt/codedeploy-agent/deployment-root/edbe4bd2-3999-4820-b782-42d8aceb18e6/d-3vrchhwwi/deployment-archive/deployment/beforeinstall.sh  log tail lifecycleevent - beforeinstall 

i don't understand why looking file in deployment archive. far know, should if not able find file in deployment directory. however, verified following files in instances have 777 permission -

/var/cake_1.2.0.6311-beta/deployment/beforeinstall.sh /var/cake_1.2.0.6311-beta/deployment/beforeinstall.php 


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -