Post 2022-01

Firebase and Github Hosting for Multiple Sites

In this blog, we will present:
  1. The commands for hosting multiple websites under one firebase project
  2. The commands to login Git Bash
  3. The commands for Github hosting via Git Bash

Here is the demo: and

Blog Image
For firebase reauthenticating:
  • $ firebase login --reauth

1. Hosting multiple websites in one Firebase project:
(1) Commands for firebase installation:
  • $ node -v
  • $ npm install -g firebase-tools
  • $ firebase -V
  • $ firebase login

For node JS download, please visit:

If you are using VScode to upload files for firebase and you have the error message:
Firebase cannot be loading because running scripts is disabled on this system.

To solve this problem, please run the following commands in PowerShell as an Administrator:

  • $ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
  • $ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

For more information, please visit:

(2) Commands for updating cotent to firebase:

Hosting website name is "amc21", and the folder is named "amc-21" under "public" folder. For more information, please refer to deploy-multiple-sites-to-firebase.

  • $ firebase target:apply hosting amc21 amc-21
  • $ firebase deploy --only hosting:amc21
2. Github hosting deployment via Git Bash
(1) Commands to login Git Bash:
  • $ git config --global "aviccomm"
  • $ git config --global ""
  • $ git config --global user.password "12345678"
  • $ git config --global credential.helper store
  • $ git config --list --show-origin

For git bash download, please visit:

(2) Commands for Github hosting via Git Bash:
  • $ git clone
  • $ git add .
  • $ git status
  • $ git commit -m "second commit"
  • $ git push -u origin main

For more information, please refer to

Leave a Comments

Send us your valuable feedback about our services