Giter VIP home page Giter VIP logo

heroku-docker-r-plumber-app's Introduction

Example Plumber App on Heroku

This is an example Plumber application, which uses heroku-docker-r for Heroku.

Deploy

You can use this project as a template for creating Plumber applications on Heroku. Execute these commands to get started:

# get the sources
git clone https://github.com/virtualstaticvoid/heroku-docker-r-plumber-app.git
cd heroku-docker-r-plumber-app

# optionally, reinitialize git
rm -rf .git
git init
git add --all
git commit -m "initial"

# create a new heroku application and deploye
heroku create --stack=container
git push heroku master

# view the application
heroku open

The following paths are provided:

The OpenAPI (Swagger) user-interface is available via the /__docs__/ path.

License

MIT License. Copyright (c) 2020 Chris Stefano. See MIT_LICENSE for details.

heroku-docker-r-plumber-app's People

Contributors

virtualstaticvoid avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

heroku-docker-r-plumber-app's Issues

H14: No Web Processes Running

When deploying to Heroku, whether using the one-push button or running the commands manually, opening the app shows an application error, and the log shows this error. Do you know what might be causing the problem?

2020-08-30T08:19:31.263405+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=glowing-dusk-456.herokuapp.com request_id=b2a23a4d-97cc-4ad3-931b-6c426bbd230f fwd="172.255.125.136" dyno= connect= service= status=503 bytes= protocol=https
2020-08-30T08:19:31.880338+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=glowing-dusk-456.herokuapp.com request_id=7778a05a-fd4e-4159-a941-23382716d083 fwd="172.255.125.136" dyno= connect= service= status=503 bytes= protocol=https

Swagger docs not publicly accessible

The Swagger docs are not accessible via the application's Heroku URL.

The API is correctly bound to all network interfaces (as denoted by 0.0.0.0) whereas the swagger docs are bound to 127.0.0.1 which makes them inaccessible from anywhere other than localhost. I.e. Only accessible on the same machine as the R process running the plumber application.

This issue is caused by the host changing logic as reported in rstudio/plumber#813.

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.