Git Product home page Git Product logo

drip's Introduction

Hi ๐Ÿ‘‹

I try to keep things simple.

You can also find me on twitter @siegerts and on my website xiegerts.com.

drip's People

Contributors

siegerts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mskyttner

drip's Issues

Update for plumber v1+

The v1+ of plumber have numerous breaking changes that limit the current functionality of drip. Mainly, the application structure that utilizes and entrypoint.R file.

The run function needs to be refactored to account for the new ways of instantiating the API itself.

#2

Usage from within docker for official plumber api example with entrypoint.R

I tried using drip in a container (see https://github.com/mskyttner/drip/blob/master/README-container.md) and have some questions/issues (which are hopefully possible to replicate using https://github.com/mskyttner/drip/blob/master/README-container.md#issues--questions).

The use case was to set up an container environment allowing live reload, by default using the plumber api example with an entrypoint that is bundled in the plumber R package.

I think I got it to run, but strangely the counter does not increment.

Any idea why?

Restart reloading when execution is halted due to "createTcpServer address already in use"

Occasionally, using drip, saving a plumber file and triggering a reload in drip will fail with plumber reporting "execution halted", with drip still running ok.

It seems to be some port clash when this happens:

server_1  | Running plumber API at http://0.0.0.0:8000
server_1  | Running swagger Docs at http://127.0.0.1:8000/__docs__/
server_1  | createTcpServer: address already in use
server_1  | Error in initialize(...) : Failed to create server
server_1  | Calls: <Anonymous> ... <Anonymous> -> startServer -> <Anonymous> -> initialize
server_1  | Execution halted
server_1  | 
server_1  | 
server_1  | Execution halted

It seems to help just to resave the file a couple of times (with no changes to the content) and it will start to work again, at least that is what I see when testing this with this file

Any advice on how to either a) automatically trap such a state so that the dripping can continue or b) write an entrypoint.R file that doesn't trigger "address already in use"?

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.