Skip to content
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

Way to prioritize some uploads in favor of others? #643

Open
timocouckuyt opened this issue Nov 10, 2022 · 1 comment
Open

Way to prioritize some uploads in favor of others? #643

timocouckuyt opened this issue Nov 10, 2022 · 1 comment

Comments

@timocouckuyt
Copy link

Question

Would there be a way of, let's say, pushing a file or folder up or down the list of changed files to upload? In my case a assets.json file contains references to other assets from which the filenames have changed. Since assets.json is placed on a higher level, in the list of all uploads, the assets.json file gets uploaded first referencing to non existing files until all assets are uploaded. In this case I would want to move that single assets.json to the bottom of uploadable changed files, so that the assets get uploaded first and after assets.json gets changed.

Thanks a lot for the work, guys.

@timocouckuyt
Copy link
Author

timocouckuyt commented Nov 10, 2022

PS: To complete, these assets get built using webpack, and are not part of the repo, we add them using .git-ftp-include. So in reality these assets get built, using different filenames for each of them (for cache bursting), the old ones don't get deleted, git-ftp just uploads the built ones, which is perfectly fine, but if assets.json gets changed first, assets.json references to assets that are non existing for as long as all built assets are not uploaded yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant