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. 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" + } + } +}