Answers for "how to deploy a website with google firebase"

4

how to deploy angular site firebase

In the terminal:
$ ng build --prod
$ npm install -g firebase-tools
$ firebase login
$ firebase init //choose dist/<project-name> as public directory
//index.html should not be overwritten
$ firebase deploy
Posted by: Guest on November-03-2020
0

deploy to firebase using trivis

// 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
Posted by: Guest on August-06-2020

Code answers related to "how to deploy a website with google firebase"

Code answers related to "Javascript"

Browse Popular Code Answers by Language