Skip to content

Commit

Permalink
Adding Firebase Hosting deployment documentation (#378)
Browse files Browse the repository at this point in the history
* Adding first version of Firebase Hosting documentation

* Renaming public to site for clarification
  • Loading branch information
ItsPugle authored and QingWei-Li committed Feb 4, 2018
1 parent bedc262 commit 0ecdacc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,28 @@ pages:
!> You can replace script with `- cp -r docs/. public`, if `./docs` is your Docsify subfolder.

## Firebase Hosting

!> You'll need to install the Firebase CLI using `npm i -g firebase-tools` after signing into the [Firebase Console](https://console.firebase.google.com) using a Google Account.

Using Terminal determine and navigate to the directory for your Firebase Project - this could be `~/Projects/Docs` etc. From there, run `firebase init`, choosing `Hosting` from the menu (use **space** to select, **arrow keys** to change options and **enter** to confirm). Follow the setup instructions.

You should have your `firebase.json` file looking similar to this (I changed the deployment directory from `public` to `site`):
```json
{
"hosting": {
"public": "site",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
```

Once finished, build the starting template by running `docsify init ./site` (replacing site with the deployment directory you determined when running `firebase init` - public by default). Add/edit the documentation, then run `firebase deploy` from the base project directory.

## VPS

Try following nginx config.
Expand Down

0 comments on commit 0ecdacc

Please sign in to comment.