Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I have to use "firebase deploy" after each change?

I'm still new to web development and I'm using Firebase to handle all my data right now.

I have everything up and running, but how do I make it so my Firebase website updates whenever I make a change to my files? Do I have to manually call firebase deploy after each change in order to see the updated site?

like image 638
xheyhenry Avatar asked Apr 20 '15 18:04

xheyhenry


2 Answers

I'm working on a Angular 4 app with Firebase as a backend, so the steps are

$ ng build --prod
$ firebase deploy
like image 23
Ivan Avatar answered Sep 22 '22 15:09

Ivan


To deploy your changes to the Firebase Hosting server, you will indeed have to run firebase deploy.

But normally when I develop an application, I run a local web server for the most part. I then only push the changes to Firebase Hosting when I have finished the feature/bugfix that I'm working on.

For local execution, I either use http-server or a gulp script that also packs the files. The latter have the advantage that they can watch your local files for changes and execute the correct steps based on that.

like image 86
Frank van Puffelen Avatar answered Sep 18 '22 15:09

Frank van Puffelen