FTP-Deploy-Action icon indicating copy to clipboard operation
FTP-Deploy-Action copied to clipboard

Update .ftp-deploy-sync-state.json during sync process

Open jakludev opened this issue 3 years ago • 4 comments

Bug Description Please implement and option to auto update uploaded items to .ftp-deploy-sync-state.json and add parameter to change how often to update the json, so when the process due to random FTP or sync error fails, it stays saved for the next time. Currently if this happens, you can't upload items, because it might fail every time. There would be also timeout error, large amount of items stops or etc.

I need to push Drupal 9 with vendor and composer and its not possible without this feature, so i must copy vendor manually and then sync just some files and its pretty slow method, thanks :-)

on: push name: 🚀 Deploy website on push jobs: web-deploy: name: 🎉 Deploy runs-on: ubuntu-latest steps: - name: 🚚 Get latest code uses: actions/checkout@v2
- name: 📂 Sync web uses: SamKirkland/[email protected] with: server: ${{ secrets.FTP_IP }} username: ${{ secrets.FTP_USER }} password: ${{ secrets.FTP_PASS }} server-dir: ./ autoupdate: true, # add this, so it stays optional for other users autoupdate-items: 150 # add this, so you can change when to autoupdate json local-dir: ./ protocol: ftp port: 21
exclude: | /.git /.git/ /node_modules/ /db_backup/ /web/core/ /vendor/

jakludev avatar Dec 06 '22 09:12 jakludev

I just came across this issue today, with a large first-time upload failing after the mid point due to the host's DNS settings, and FTP-Deploy-Action doesn't update .ftp-deploy-sync-state.json even after uploading thousands of files, after throwing Error: The operation was canceled

It would be great to update the state file at certain upload intervals so that the upload can continue off, great idea!

jv-k avatar Dec 07 '22 22:12 jv-k

if sync files .ftp-deploy-sync-state.json can be updated together with when the process is running is will be greate

This is not suitable for uploading large files I use codeigniter 4 it takes a long time using the exclude feature to upload files a little bit and I gave up on uploading thirdparty vendors and replaced the code with composer

reactmore avatar Dec 27 '22 12:12 reactmore

Same problem here with complete WordPress folder for uploading.

NearlyShake avatar Mar 08 '24 17:03 NearlyShake