Skip to content

Commit c5f1d20

Browse files
zigomirNataliaTepluhina
authored andcommitted
Add heroku deployment guide (#3777)
* Add heroku deployment description * Link to heroku CLI article Also split instructions into steps * Use heroku org buildpack link Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com> * Update docs/guide/deployment.md Co-Authored-By: Natalia Tepluhina <NataliaTepluhina@users.noreply.github.com> (cherry picked from commit 323acc9)
1 parent 63da967 commit c5f1d20

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

docs/guide/deployment.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,35 @@ npm install -g now
261261

262262
### Heroku
263263

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
265293

266294
### Surge
267295

0 commit comments

Comments
 (0)