Answer the question
In order to leave comments, you need to log in
Where are sh scripts run from in BeforeInstall and AfterInstall in appspec.yml?
There is a repository on github. From there, using AWS CodeDeploy Pipelines, the code is deployed to an EC2 machine. I wrote the following in appspec.yml:
version: 0.0
os: linux
files:
- source: /
destination: /home/ec2-user/discord/
hooks:
BeforeInstall:
- location: stop.sh
timeout: 60
runas: user
AfterInstall:
- location: start.sh
timeout: 60
runas: user
LifecycleEvent - BeforeInstall
Script - stop.sh
[stderr]bash: /opt/codedeploy-agent/deployment-root/1f6e86fa-af22-4586-b715-9c393c86900e/d-VUFS9W9N4/deployment-archive/stop.sh: bin/bash/: bad interpreter: No such file or directory
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question