You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/deployment.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,13 +143,13 @@ Create a new Firebase project on your [Firebase console](https://console.firebas
143
143
144
144
Make sure you have installed [firebase-tools](https://github.com/firebase/firebase-tools) globally:
145
145
146
-
```
146
+
```bash
147
147
npm install -g firebase-tools
148
148
```
149
149
150
150
From the root of your project, initialize `firebase` using the command:
151
151
152
-
```
152
+
```bash
153
153
firebase init
154
154
```
155
155
@@ -190,7 +190,7 @@ Run `npm run build` to build your project.
190
190
191
191
To deploy your project on Firebase Hosting, run the command:
192
192
193
-
```
193
+
```bash
194
194
firebase deploy --only hosting
195
195
```
196
196
@@ -202,7 +202,11 @@ Please refer to the [Firebase Documentation](https://firebase.google.com/docs/ho
202
202
203
203
### Now
204
204
205
-
1. Install the Now CLI globally:`npm install -g now`
205
+
1. Install the Now CLI globally:
206
+
207
+
```bash
208
+
npm install -g now
209
+
```
206
210
207
211
2. Add a `now.json` file to your project root:
208
212
@@ -256,7 +260,7 @@ To deploy with [Surge](http://surge.sh/) the steps are very straightforward.
256
260
257
261
First you would need to build your project by running `npm run build`. Andif you haven't installed Surge's command line tool, you can simply do so by running the command:
0 commit comments