Deploy in ftps mode

o.murciano's Avatar


13 Jul, 2020 09:52 AM


I deploy my application on my Azure server using the FTPS deployment mode.
However, I realize that during the deployment, my old files are still in the destination directory.
My question is, how can I proceed so that before launching my deployment, my destination folder on my server be deleted?


  1. Support Staff 1 Posted by Feodor Fitsner on 13 Jul, 2020 06:35 PM

    Feodor Fitsner's Avatar


    Current FTPS implementation in AppVeyor doesn't support old files removal.

    You can use AppVeyor Deployment Agent which supports full sync.

    If FTPS is the only option to deploy to that server then you can use WinSCP which can do full "sync" of local/remote folders and much more.

    The general algorithm for using WinSCP in a build script:

    - cmd: |
        choco install -y winscp
        echo open ftpes://%FTP_USER%:%FTP_PSW%@<your-ftp-server>/ > ftp.txt
        echo put <somefile> / >> ftp.txt
        echo exit >> ftp.txt
        "C:\Program Files (x86)\WinSCP\" /script=ftp.txt

    where FTP_USER and FTP_PSW are secure environment variables defined on either project settings UI or in appveyor.yml.

  2. Feodor Fitsner closed this discussion on 12 Sep, 2020 09:03 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac