File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,35 @@ npm install -g now
261
261
262
262
### Heroku
263
263
264
- > TODO | Open to contribution.
264
+ 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
+ ` ` ` bash
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
265
293
266
294
### Surge
267
295
You can’t perform that action at this time.
0 commit comments