From 0f5fb1ecde3f3d44498a332f07080d74f51a9f28 Mon Sep 17 00:00:00 2001 From: Chris Castle Date: Wed, 11 Oct 2017 13:12:19 -0700 Subject: [PATCH 1/2] Direct user to example+docs after Heroku deploy It would be great to show users how the API works upon successful deploy to Heroku. Setting the `success_url` parameter in `app.json` will open up the specified URL on successful deploy. To make it even more useful, I set it to the README for this project so the user can continue understanding how the API works. --- app.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.json b/app.json index ae256b38..37ee9e43 100644 --- a/app.json +++ b/app.json @@ -20,6 +20,7 @@ "required": false } }, + "success_url": "/api/render?url=https://github.com/alvarcarto/url-to-pdf-api/blob/master/README.md" "buildpacks": [ { "url": "https://github.com/jontewks/puppeteer-heroku-buildpack" @@ -31,4 +32,4 @@ "url": "https://github.com/debitoor/heroku-buildpack-converter-fonts" } ] -} \ No newline at end of file +} From 3050f97a5c2c2609bd41da90d25506c5cfd1b5b4 Mon Sep 17 00:00:00 2001 From: Chris Castle Date: Wed, 11 Oct 2017 13:13:29 -0700 Subject: [PATCH 2/2] Add missing comma --- app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.json b/app.json index 37ee9e43..13186843 100644 --- a/app.json +++ b/app.json @@ -20,7 +20,7 @@ "required": false } }, - "success_url": "/api/render?url=https://github.com/alvarcarto/url-to-pdf-api/blob/master/README.md" + "success_url": "/api/render?url=https://github.com/alvarcarto/url-to-pdf-api/blob/master/README.md", "buildpacks": [ { "url": "https://github.com/jontewks/puppeteer-heroku-buildpack"