Q:

deploy functions firebase

$ firebase deploy --only functions
0
firebase deploy --only functions:functionNameHere
4
///////// FIREBASE DEPLOY USING COMMAND LINE //////////////////

// Goto Terminal and  Login to firebase below command

=> firebase login

=> firebase init

=> select Hosting: Configure and deploy ...  (press space for select) 
// press enter after selecting

=> Use an existing project
// select the project name which you built in firebase

// imp type build 
=> What do you want to use as your public directory? build

// And then Y for single page web App
=> Configure as a single-page app? Yes

-----------------------NOW RUN-----------------------

=> npm run build

=> firebase deploy

!!!!! Congrats you just deploy your app !!!!!




0
// get token in terminal
$ firebase login:ci
$ // token here

// add token to travis  settings

// create file .travis.yaml
language: node_js
node_js: 
  - "12"
script:
  - npm install
  - npm run build
  - echo "Deploying!"
install:
  - npm install -g firebase-tools
after_success:
  - firebase deploy --token $FIREBASE_TOKEN
  
  
$ firebase init

$ git push

// done
0
firebase deploy --project [project-name]
-1

New to Communities?

Join the community