question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase deploy should not reupload unchanged files

See original GitHub issue

My site is 0.2 MB of html and 9.8 MB of images. I have a slow internet connection. Whenever I change the html, I suffer firebase deploy reuploading all the images—even though they are unchanged.

Good old Divshot was careful to compare sha256 sums so it could skip reuploading unchanged files. This made it usable on a slow connection. You can read a description of its algorithm at https://github.com/divshot/divshot-push/blob/master/lib/sync-tree.js

Whereas Firebase simply creates a tar ball of the entire project firebase-upload-*.tar.gz https://github.com/firebase/firebase-tools/blob/master/lib/prepareUpload.js , including all the unchanged files.

Please think how to conserve bandwidth, for those of us not blessed with high speed internet.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:46
  • Comments:28 (10 by maintainers)

github_iconTop GitHub Comments

7reactions
mbleighcommented, May 17, 2016

Yep, this is on the roadmap and we know it’s strongly desired. Can’t give you a timeline, but we’re well aware.

On Tue, May 17, 2016, 9:49 AM Mirth Hickford notifications@github.com wrote:

See also similar feature request for Surge.sh sintaxi/surge#119 https://github.com/sintaxi/surge/issues/119

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/firebase/firebase-tools/issues/133#issuecomment-219780589

6reactions
samtsterncommented, Sep 26, 2018

This is the 5th most “reacted” open issue on Firebase, so I am really happy to be able to close it!

https://firebase.googleblog.com/2018/08/one-project-multiple-sites-plus-boost.html

If you updated the Firebase CLI recently, you might have noticed that your uploads got a bit faster. You may have also noticed a new .firebase folder in your project. That’s because we rolled up a new deployment system that we call Delta Uploads.

This new system only processes new, modified, or deleted files. You know, the delta. This means any files that are unchanged aren’t uploaded when you run firebase deploy. You may not notice a big improvement in performance if your site is only a few files. However, it will make a huge difference for sites with a large amount of existing unmodified assets.

Make sure to get the newest version of the Firebase CLI (firebase-tools on npm) and you’ll get super fast uploads!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase deploy firebase.json only - Stack Overflow
Yes. But note that firebase deploy will only deploy modified files these days. So if you changed no files, then it will not...
Read more >
Configure Hosting behavior | Firebase Hosting - Google
Specify which files in your local project directory you want to deploy to Firebase Hosting. Learn how. Serve a customized 404/Not Found page....
Read more >
Uploading large files on web using Firebase - Medium
Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confirm your...
Read more >
download file from yumpu
Do not rely on the name of a file to determine the contents of the file. ... the magazine Re-Upload: If the PDF...
Read more >
One project, multiple sites! Plus a boost in upload speed!
This means any files that are unchanged aren't uploaded when you run firebase deploy . You may not notice a big improvement in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found