usama abdul razzaq
usama abdul razzaq

Reputation: 111

How to Re Deploy app after making certain changes on firebase

I have deployed my Reactjs Application with firebase but After making certain changes to my code, I want to redeploy that app. How can I redeploy the app after making changes to my code?

I follow these steps to deploy:

  1. Firebase login
  2. firebase init (follow the procedure and create build)
  3. npm run build
  4. firebase deploy

Upvotes: 2

Views: 4392

Answers (3)

Tanzeel Khan
Tanzeel Khan

Reputation: 46

on the root of your project first, you have to run npm run build then firebase deploy

Upvotes: 1

Ali Zaid
Ali Zaid

Reputation: 286

  1. First of all, you have to build the new changes.

    npm run build

  2. Then Firebase deploy to deploy the app

You should run these two commands inside your project folder where you ran firebase init.

Upvotes: 3

Doug Stevenson
Doug Stevenson

Reputation: 317497

Simply run firebase deploy again from the same folder where you ran fireabse init.

Upvotes: 7

Related Questions