We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63da967 commit c5f1d20Copy full SHA for c5f1d20
docs/guide/deployment.md
@@ -261,7 +261,35 @@ npm install -g now
261
262
### Heroku
263
264
-> TODO | Open to contribution.
+1. [Install Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)
265
+
266
+2. Create a `static.json` file:
267
+```json
268
+{
269
+ "root": "dist",
270
+ "clean_urls": true,
271
+ "routes": {
272
+ "/**": "index.html"
273
+ }
274
+}
275
+```
276
277
+3. Add `static.json` file to git
278
+```bash
279
+git add static.json
280
+git commit -m "add static configuration"
281
282
283
+4. Deploy to Heroku
284
285
+heroku login
286
+heroku create
287
+heroku buildpacks:add heroku/nodejs
288
+heroku buildpacks:add https://github.com/heroku/heroku-buildpack-static
289
+git push heroku master
290
291
292
+More info: https://gist.github.com/hone/24b06869b4c1eca701f9
293
294
### Surge
295
0 commit comments