Skip to content
A simple way to deploy WireMock on to Heroku
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
Procfile
README.md
manifest.sh
wiremock-heroku.sh

README.md

wiremock-heroku

A simple way to deploy WireMock on to Heroku

Prerequisites

Instructions

TLDR:

git clone git@github.com:Mahoney/wiremock-heroku.git && \
cd wiremock-heroku && \
./wiremock-heroku.sh <unique_app_name>

For those who want to understand:

  • Clone this repository
git clone git@github.com:Mahoney/wiremock-heroku.git
cd wiremock-heroku
  • Add a heroku remote
heroku create <unique_app_name>
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/
You can’t perform that action at this time.