Aws code deploy: No such file or directory - appspec.yml

When trying to deploy a rails app using code deployment, I get the following error message:

No such file or directory - /opt/codedeploy-agent/deployment-root/b3ff73b4-aa93-4e49-99e4-c26cdcf7a6f0/d-06LE313R9/deployment-archive/appspec.yml

      

on "BeforeInstall" error.

I have apppec.yml in my rails app root directory (for example, this is myapp / appspec.yml) and don't know how to put the appspec file in the deployment and archive directory.

+3


source to share


1 answer


The file appspec.yml

must be in the root of the archive you download on S3 or the GitHub repo you are deploying with. Try moving your appspec to the same directory.

\
|-- appspec.yml
`-- myapp
    `--- (the rest of your rails app source tree)

      



Note that the apps mostly use paths relative to the root of the archive, so you'll have to adjust them if you move your apps.

Alternatively, you can create your package from your directory myapp

so that appspec.yml

it is still in the root directory of your archive.

+6


source







All Articles