-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update .ftp-deploy-sync-state.json during sync process #341
Comments
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 It would be great to update the state file at certain upload intervals so that the upload can continue off, great idea! |
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 |
Same problem here with complete WordPress folder for uploading. |
Hey guys! I had the same problem and I have a workaround that can help someone. Letting a script, a txt and a readme which allows to prevent uploading the entire project when it's already uploaded but not synced. I had 2 projects and it worked in both so I hope it works fine for you as well and save you some time and resources. Hope it helps! |
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/
The text was updated successfully, but these errors were encountered: