Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Adding Heroku platform guide #3285

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/guide/deployment.md
Expand Up @@ -261,7 +261,16 @@ npm install -g now

### Heroku

> TODO | Open to contribution.
1. Follow this guide to install [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli).
2. Navigate to the root of your project, use this command `cd <YOUR-PROJECT-FOLDER-HERE>`.
3. Create a new `Git repository`, use this command `git init`.
4. Create a new `Heroku` app, use this command `heroku apps:create <YOUR-PROJECT-NAME-HERE>`.
5. Add [Serve](https://github.com/zeit/serve) as a dependency to your project, use this command `npm install serve --save`
6. Modify your project's `package.json` file, add these two lines to the `scripts` section:
* `"heroku-postbuild": "npm run build"` To tell `Heroku` to build your project in the `dist` folder.
* `"start": "serve -s dist"` To tell `Heroku` to use `Serve` to serve your project from the `dist` folder.
7. Commit your changes to git, use this command `git add . && git commit -a -m "Adding Heroku deployment support"`.
8. Deploy your app to `Heroku` by pushing your new updates, use this command `git push heroku master`.

### Surge

Expand Down