andres-montanez / Magallanes

The PHP Deployment Tool
https://magephp.com
MIT License
694 stars 167 forks source link

Magephp 3.4 problem with excludes files #446

Closed elrokket closed 3 years ago

elrokket commented 3 years ago

Hello, i dont know if is a bug or configuration problem, i have this mage config:

magephp:
  environments:
    development:
      user: root
      branch: develop
      from: ./
      host_path: /var/www/project-new
      releases: 3
      exclude:
        - ./.ddev/*
        - ./web/sites/default/file-one.php
        - ./web/sites/default/file-two.php
        - ./web/sites/default/hosts/*
        - ./web/sites/default/files/*
      hosts:
        - 200.22.1.2.2:2203
      log_dir: ./deploy_logs
      pre-deploy:
      on-deploy:
      on-release:
      post-release:
      post-deploy:

the excludes files or folder is not uploading (This is correct) but in development enviroment excludes folder/files are remove. How i can prevent that this folders from being deleted? i need mantain this files without changes.

Thanks

andres-montanez commented 3 years ago

Hi! Because you are using releases, each deploy is a new build, so changed files won't be kept. If you need it, you can create symlinks to outside the release directory, or remove the releases option. Hope it helps!