From 2a2f433f127910c94249654c059f8b8cc2a6a635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanko=20Krtali=C4=87?= Date: Thu, 3 Jan 2019 14:15:59 +0100 Subject: [PATCH 1/2] Create app.json --- app.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app.json diff --git a/app.json b/app.json new file mode 100644 index 0000000..0f0db26 --- /dev/null +++ b/app.json @@ -0,0 +1,10 @@ +{ + "name": "Heroku Redirect", + "repository": "https://github.com/kenmickles/heroku-redirect", + "env": { + "NEW_BASE_URL": { + "description": "Redirect all requests to this URL.", + "value": "http://example.com" + } + } +} From f256c5f06e8adf96808cd70e7a8753601cb8d0d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanko=20Krtali=C4=87?= Date: Thu, 3 Jan 2019 14:17:46 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0748252..72959ad 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ heroku config:add NEW_BASE_URL=http://example.com ## Deployment +[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy) + If the old app that you're redirecting from isn't a Node app you'll need to change the [buildpack](https://devcenter.heroku.com/articles/buildpacks): ``` @@ -22,4 +24,4 @@ You can then replace the app by pushing with `-f`: git push heroku master -f ``` -**NOTE:** If the above doesn't work you may need to delete and re-create your Heroku app before pushing an entirely new Git repository into it. \ No newline at end of file +**NOTE:** If the above doesn't work you may need to delete and re-create your Heroku app before pushing an entirely new Git repository into it.