Skip to content

Commit

Permalink
Add heroku deployment guide (#3777)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
zigomir authored and sodatea committed Jun 24, 2019
1 parent 63da967 commit c5f1d20
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion docs/guide/deployment.md
Expand Up @@ -261,7 +261,35 @@ npm install -g now
### Heroku

> TODO | Open to contribution.
1. [Install Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)

2. Create a `static.json` file:
```json
{
"root": "dist",
"clean_urls": true,
"routes": {
"/**": "index.html"
}
}
```

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
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-static
git push heroku master
```

More info: https://gist.github.com/hone/24b06869b4c1eca701f9

### Surge

Expand Down

0 comments on commit c5f1d20

Please sign in to comment.