Skip to content

Commit 0ecdacc

Browse files
ItsPugleQingWei-Li
ItsPugle
authored andcommitted
Adding Firebase Hosting deployment documentation (#378)
* Adding first version of Firebase Hosting documentation * Renaming public to site for clarification
1 parent bedc262 commit 0ecdacc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/deploy.md

+22
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,28 @@ pages:
3939
4040
!> You can replace script with `- cp -r docs/. public`, if `./docs` is your Docsify subfolder.
4141

42+
## Firebase Hosting
43+
44+
!> 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.
45+
46+
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.
47+
48+
You should have your `firebase.json` file looking similar to this (I changed the deployment directory from `public` to `site`):
49+
```json
50+
{
51+
"hosting": {
52+
"public": "site",
53+
"ignore": [
54+
"firebase.json",
55+
"**/.*",
56+
"**/node_modules/**"
57+
]
58+
}
59+
}
60+
```
61+
62+
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.
63+
4264
## VPS
4365

4466
Try following nginx config.

0 commit comments

Comments
 (0)