mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-20 03:00:57 -05:00
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 323acc915e)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user