GithubHelp home page GithubHelp logo

baldinof / caddy-supervisor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucaslorentz/caddy-supervisor

77.0 77.0 7.0 151 KB

Run and supervise background processes from Caddy

License: MIT License

Go 100.00%

caddy-supervisor's People

Contributors

baldinof avatar jaysonsantos avatar lucaslorentz avatar mmachatschek avatar reichelsilpion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

caddy-supervisor's Issues

Setting replicas to 0 has same effect than setting replicas to 1

Hello there,

I tried to temporarily disable a command by setting its replicas to 0 but it didn't work - it looked like replicas directive is then simply ignored and 1 replica is spawned.

It would be great tho, it would avoid commenting lines one by one (in vim, ofc!) and disabling replicas this way would (presumably) be possible by using an env var, making it possible to have same Caddyfile on different machines, but a different number of workers (or no worker at all) when relevant.

Thanks!
Ben

Configurable restart delay

Hello and Happy new Year!

We are using caddy-supervisor in our Devcontainer Configuration with php-fpm. As we are switching all of our Production Containers to Laravel Octane we would like to switch our Devcontainers to Octane too.

The Problem is that Octane is crashing fairly often while developing because of Parse Errors etc. so the restart delay increases pretty fast.

We would like to be able to configure maxRestartDelay and durationToResetRestartDelay in supervisor.go

If you are OK with this I'd be happy to provide a PR

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.