AWS CodeDeploy Fail: The deployment failed because a specified file already exists at this location

前端 未结 5 1903
鱼传尺愫
鱼传尺愫 2021-01-04 01:59

I am trying to set AWS Code deploy with Github to automate my deloyment. the problem i am having is the ec2 instance is already active and has the web app code. the problem

5条回答
  •  轮回少年
    2021-01-04 02:35

    You can simply delete the entire contents of your web root and allow CodeDeploy to update it. Any type of deployment will replace the entire contents.

    If you're feeling unsure then copy the webroot to another folder, and in the very unlikely event of a failure you can copy it all back.

    Deployments often fail when a file has been modified on the disk, I assume CodeDeploy is checking the modified time of the file.

提交回复
热议问题