From 4ff02e7110c8180d0cb72eb4929cb124b1a83c9b Mon Sep 17 00:00:00 2001 From: ziga Date: Mon, 8 Apr 2019 14:12:46 -0400 Subject: [PATCH 1/4] Add heroku deployment description --- docs/guide/deployment.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docs/guide/deployment.md b/docs/guide/deployment.md index f6e44b250c..5e8da056c0 100644 --- a/docs/guide/deployment.md +++ b/docs/guide/deployment.md @@ -261,7 +261,30 @@ npm install -g now ### Heroku -> TODO | Open to contribution. +Create a `static.json` file: + +```json +{ + "root": "dist", + "clean_urls": true, + "routes": { + "/**": "index.html" + } +} +``` + +```bash +git add static.json +git commit -m "add static configuration" + +heroku login +heroku create +heroku buildpacks:add heroku/nodejs +heroku buildpacks:add https://github.com/hone/heroku-buildpack-static +git push heroku master +``` + +More info: https://gist.github.com/hone/24b06869b4c1eca701f9 ### Surge From 1dd9ac6a2d959878d9aabf25aa4428bf26249e08 Mon Sep 17 00:00:00 2001 From: ziga Date: Thu, 13 Jun 2019 11:05:40 -0400 Subject: [PATCH 2/4] Link to heroku CLI article Also split instructions into steps --- docs/guide/deployment.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/guide/deployment.md b/docs/guide/deployment.md index 5e8da056c0..6eba643150 100644 --- a/docs/guide/deployment.md +++ b/docs/guide/deployment.md @@ -261,8 +261,9 @@ npm install -g now ### Heroku -Create a `static.json` file: +1. [install HerokU CLI](https://devcenter.heroku.com/articles/heroku-cli) +2. Create a `static.json` file: ```json { "root": "dist", @@ -273,10 +274,14 @@ Create a `static.json` file: } ``` +3. Add `static.json` file to git ```bash git add static.json git commit -m "add static configuration" +``` +4. Deploy to Heroku +```bash heroku login heroku create heroku buildpacks:add heroku/nodejs From 05805024a9e0d193bf55e07f6db93afed5b23148 Mon Sep 17 00:00:00 2001 From: ziga Date: Fri, 21 Jun 2019 10:35:00 -0400 Subject: [PATCH 3/4] Use heroku org buildpack link Co-Authored-By: Natalia Tepluhina --- docs/guide/deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/deployment.md b/docs/guide/deployment.md index 6eba643150..31848394a7 100644 --- a/docs/guide/deployment.md +++ b/docs/guide/deployment.md @@ -285,7 +285,7 @@ git commit -m "add static configuration" heroku login heroku create heroku buildpacks:add heroku/nodejs -heroku buildpacks:add https://github.com/hone/heroku-buildpack-static +heroku buildpacks:add https://github.com/heroku/heroku-buildpack-static git push heroku master ``` From 148337ef67ed0fcb6656e1a3a0e253101e339a59 Mon Sep 17 00:00:00 2001 From: ziga Date: Sat, 22 Jun 2019 09:40:41 -0400 Subject: [PATCH 4/4] Update docs/guide/deployment.md Co-Authored-By: Natalia Tepluhina --- docs/guide/deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/deployment.md b/docs/guide/deployment.md index 31848394a7..ed6714dc56 100644 --- a/docs/guide/deployment.md +++ b/docs/guide/deployment.md @@ -261,7 +261,7 @@ npm install -g now ### Heroku -1. [install HerokU CLI](https://devcenter.heroku.com/articles/heroku-cli) +1. [Install Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli) 2. Create a `static.json` file: ```json