Ignore folders in appspec.yml

1

Greetings, I have a synchronization problem with AWS and GIT, I have a repository of photos in a wordpress but these photos are not in the repository (They are almost 4 GB) the issue is every time I make a commit I delete the folder with the photos.

I want to synchronize the entire directory of the wordpress except the folder wp-content / uploads ignore it in some way and not delete it.

Here is the content of the appspec.yml file, which rule exists so that this synchronization omits folders of the type "uploads / *" I have read in the Amazon document but it is confusing.

version: 0.0
os: linux
files:
  - source: /
    destination: /var/www/html
hooks:
  BeforeInstall:
    - location: scripts/install_dependencies.sh
      timeout: 300
      runas: root
  AfterInstall:
    - location: scripts/change_permissions.sh
      timeout: 300
      runas: root
  ApplicationStart:
    - location: scripts/start_server.sh
      timeout: 300
      runas: root
  ApplicationStop:
    - location: scripts/stop_server.sh
      timeout: 300
      runas: root
    
asked by Carlos Alberto Narvaez Beltran 24.01.2018 в 21:41
source

0 answers