From 4c56367594179d9b47ae5f50a0ff2d2cce3d41ae Mon Sep 17 00:00:00 2001 From: Leonardo A Date: Tue, 8 May 2018 09:52:01 -0500 Subject: [PATCH 1/3] docs: add heroku deploy instructions --- docs/guide/deploy.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/docs/guide/deploy.md b/docs/guide/deploy.md index 607fb988ce..c47418f3bb 100644 --- a/docs/guide/deploy.md +++ b/docs/guide/deploy.md @@ -131,4 +131,46 @@ pages: 3. Deploy to surge, by typing `surge docs/.vuepress/dist`. -You can also deploy to a [custom domain](http://surge.sh/help/adding-a-custom-domain) by adding `surge docs/.vuepress/dist yourdomain.com`. \ No newline at end of file +You can also deploy to a [custom domain](http://surge.sh/help/adding-a-custom-domain) by adding `surge docs/.vuepress/dist yourdomain.com`. + +## Heroku + +1. First install [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli). + +2. Heroku Account – [sign up here](https://signup.heroku.com). + +3. Run heroku login in your terminal or command prompt and fill in your Heroku credentials. + +``` bash +heroku login +``` + +4. Create a file called `static.json` in the root of your project with the content below. This is the configuration of your site. see more at [heroku-buildpack-static](https://github.com/heroku/heroku-buildpack-static). + + `static.json`: + ```json + { + "root": "./docs/.vuepress/dist" + } + ``` + +5. Deploying Your Site + +``` bash +# version change +git init +git add . +git commit -m "My site ready for deployment." + +# created app heroku (personalize name for the app) +heroku apps:create my-static-site-example + +# set buildpack for static sites +heroku buildpacks:set https://github.com/heroku/heroku-buildpack-static.git + +# publish site +git push heroku master + +# open site for visualize result +heroku open +``` From a33c850625fa44abc3acbf98dfba2f9773f83b39 Mon Sep 17 00:00:00 2001 From: Leonardo A Date: Tue, 8 May 2018 13:19:37 -0500 Subject: [PATCH 2/3] docs: add heroku deploy instructions patch configuration of heroku and deploy --- docs/guide/deploy.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/guide/deploy.md b/docs/guide/deploy.md index c47418f3bb..bc39cdefaa 100644 --- a/docs/guide/deploy.md +++ b/docs/guide/deploy.md @@ -154,7 +154,7 @@ heroku login } ``` -5. Deploying Your Site +5. Set up your heroku git remote ``` bash # version change @@ -167,7 +167,11 @@ heroku apps:create my-static-site-example # set buildpack for static sites heroku buildpacks:set https://github.com/heroku/heroku-buildpack-static.git +``` + +6. Deploying Your Site +``` bash # publish site git push heroku master From 0f7c6616083c3a8cc839f26402783a735969c1d6 Mon Sep 17 00:00:00 2001 From: Leonardo Valencia Date: Wed, 9 May 2018 07:43:29 -0500 Subject: [PATCH 3/3] docs: add heroku deploy instructions Update indent between lines 150 - 155 --- docs/guide/deploy.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/guide/deploy.md b/docs/guide/deploy.md index bc39cdefaa..fd78004c1f 100644 --- a/docs/guide/deploy.md +++ b/docs/guide/deploy.md @@ -147,12 +147,12 @@ heroku login 4. Create a file called `static.json` in the root of your project with the content below. This is the configuration of your site. see more at [heroku-buildpack-static](https://github.com/heroku/heroku-buildpack-static). - `static.json`: - ```json - { - "root": "./docs/.vuepress/dist" - } - ``` +`static.json`: +```json +{ + "root": "./docs/.vuepress/dist" +} +``` 5. Set up your heroku git remote