Code Monkey home page Code Monkey logo

Comments (19)

abiosoft avatar abiosoft commented on June 26, 2024

I've started working on this. :)

However, this is gonna be basic and will definitely not be as feature-rich as supervisord.

from caddy-git.

abiosoft avatar abiosoft commented on June 26, 2024

This is now supported. You can use then_long config for this. Check README.

from caddy-git.

region23 avatar region23 commented on June 26, 2024

@abiosoft Thank you very much! Immediately begin testing

from caddy-git.

region23 avatar region23 commented on June 26, 2024

@abiosoft Can then_long check if service is down & restart it?
How to build beta version of caddy with new version of git addon?

from caddy-git.

abiosoft avatar abiosoft commented on June 26, 2024

I did not cater for shutdown but now that you've mentioned it, I see the need. What I am gonna make it do is to check the exit status. If it exits on error then it is gonna be restarted.

You can use https://github.com/caddyserver/caddyext for that.

Thanks.

from caddy-git.

region23 avatar region23 commented on June 26, 2024

@abiosoft thanks twice :)

from caddy-git.

abiosoft avatar abiosoft commented on June 26, 2024

Done :)

from caddy-git.

region23 avatar region23 commented on June 26, 2024

Where I can see log file of then_long command?

from caddy-git.

abiosoft avatar abiosoft commented on June 26, 2024

It logs to wherever caddy outputs to.

I'd advise you pull latest changes. I made two minor bug fixes last night.

Cheers :)

from caddy-git.

region23 avatar region23 commented on June 26, 2024

pull just now :) 👍

from caddy-git.

region23 avatar region23 commented on June 26, 2024

I have an error: Parse error: Wrong argument count or unexpected line ending after 'then_long'
I try to quote command mimozaflowers, but this not help.

This is my Caddyfile

mimozaflowers.ru, www.mimozaflowers.ru {
        root /root/gocode/src/github.com/pavlik/mimozaflowers
        gzip
        log /var/log/mimoza_access.log

        errors {
                log /var/log/mimoza_error.log
                #404 404.html # Not Found
        }

        git {
                path ./
                repo https://github.com/pavlik/mimozaflowers
                hook /webhook my_secret
                then go install
                then_long /root/gocode/bin/mimozaflowers
        }

        proxy / localhost:9000
}

from caddy-git.

abiosoft avatar abiosoft commented on June 26, 2024

I have not experienced this and can not reproduce it.

What platform are you on ?

from caddy-git.

region23 avatar region23 commented on June 26, 2024

@abiosoft Ubuntu 14.04 64 bit

from caddy-git.

abiosoft avatar abiosoft commented on June 26, 2024

@Pavlik Ensure the Caddy you're using includes the Git plugin.

from caddy-git.

region23 avatar region23 commented on June 26, 2024

@abiosoft caddy 0.8 beta 4 with last ver of your pluggin installed by caddyext & then I make go install in caddy dir for new executable ver of caddy.
git plugin works fine. Only command then_long not work

from caddy-git.

abiosoft avatar abiosoft commented on June 26, 2024

Sorry follow this steps, I think you're using an outdated version.

$ caddyext install git
$ go get github.com/mholt/caddy

Then try again.

from caddy-git.

region23 avatar region23 commented on June 26, 2024

@abiosoft I remove caddy from bin directory, then I follow your instructions. Then go install for caddy. But this error still happened.

from caddy-git.

abiosoft avatar abiosoft commented on June 26, 2024

Caddy 0.8 is released. Can you try downloading from Caddy's site now and trying again.

Or
wget -O caddy.tar.gz "https://caddyserver.com/download/build?os=linux&arch=amd64&features=git"

Then extract the tar and try again.

from caddy-git.

region23 avatar region23 commented on June 26, 2024

@abiosoft with caddy 0.8 al works fine! Thank you!

from caddy-git.

Related Issues (20)

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.