A simple way to deploy WireMock on to Heroku
git clone git@github.com:Mahoney/wiremock-heroku.git && \
cd wiremock-heroku && \
./wiremock-heroku.sh <unique_app_name>
- Clone this repository
git clone git@github.com:Mahoney/wiremock-heroku.git
cd wiremock-heroku
- Add a heroku remote
heroku create <unique_app_name>
- Add the Energized Work downloadable jar buildpack
heroku config:set 'NO_PRE_DEPLOY=true'
heroku buildpacks:set https://github.com/energizedwork/heroku-buildpack-runnable-jar
- Start the app
git push heroku master
- Check it
curl http://<unique_app_name>.herokuapp.com/__admin/mappings/new \
-d '{ "request": { "url": "/", "method": "GET" }, "response": { "body": "This is WireMock running on Heroku\n" }}'
curl http://<unique_app_name>.herokuapp.com/