GithubHelp home page GithubHelp logo

wiremock-heroku's Introduction

wiremock-heroku

A simple way to deploy WireMock on to Heroku

Prerequisites

Instructions

TLDR:

git clone [email protected]:Mahoney/wiremock-heroku.git && \
cd wiremock-heroku && \
./wiremock-heroku.sh <unique_app_name>

For those who want to understand:

  • Clone this repository
git clone [email protected]: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/

wiremock-heroku's People

Contributors

mahoney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wiremock-heroku's Issues

502 Bad gateway error - wiremock heroku

Hi Team,

I was struggling to host standalone Wiremock server on Heroku earlier. Thanks for providing comprehensive method against this GIT to deploy Wiremock on Heroku.
I have tried the same and created new app in my heroku. There is no issue with deployment but whenever I am hitting __admin/mapping it is giving 502 - HTTP Bad gateway error. I tried to post request from POSTMAN which is also not working and in Curl as well it is giving same 502 error.
Below is the Heroku log -
2018-07-23T14:17:22.052410+00:00 heroku[router]: at=info code=H81 desc="Blank app" method=GET path="/__admin/mappings/new" host=ttbot-heroku.herokuapp.com request_id=42fa7bac-92e0-48ed-9fc3-381efb8f8d4f fwd="42.106.240.126" dyno= connect= service= status=502 bytes= protocol=http

One thing which I noted that Heroku dyno is not Web dyno though your proc file configured web. Is there anything which needs to be changed in Proc file.

I am stuck on this and any help would be much appreciated.

test

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.