Comments (19)
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.
This is now supported. You can use then_long
config for this. Check README.
from caddy-git.
@abiosoft Thank you very much! Immediately begin testing
from caddy-git.
@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.
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.
@abiosoft thanks twice :)
from caddy-git.
Done :)
from caddy-git.
Where I can see log file of then_long
command?
from caddy-git.
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.
pull just now :) 👍
from caddy-git.
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.
I have not experienced this and can not reproduce it.
What platform are you on ?
from caddy-git.
@abiosoft Ubuntu 14.04 64 bit
from caddy-git.
@Pavlik Ensure the Caddy you're using includes the Git plugin.
from caddy-git.
@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.
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.
@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.
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.
@abiosoft with caddy 0.8 al works fine! Thank you!
from caddy-git.
Related Issues (20)
- 400 Bad Request - Bitbucket
- Does this package assume git repo URLs with always have ".git" in them? HOT 5
- Prevent pulling / running script on start
- Using a pure Go git HOT 3
- Caddy's import path has changed HOT 2
- Hook from gitlab.com fails with http 400 error
- parse ssh invalid port ":sjatsh" after host HOT 16
- submodules not getting updated
- Problems with clone on startup with git host in same Caddyfile HOT 2
- Caddy 2 support HOT 3
- Travis webhook verification HOT 1
- Cloning private repo fails HOT 2
- Support for multiple remote urls for a single repo (ssh and https URLs) HOT 2
- Webhook - Bad Request 400 HOT 1
- Large number of zombie processes in docker HOT 3
- RFE: whitelisted blocks of IP addresses for webhooks should be configurable HOT 3
- Error during parsing: Unknown directive 'repo' HOT 2
- problem at git HOT 6
- Pulling `{latest}` via WebHook HOT 4
- caddy-git error when cloning repos with custom port (SSH) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caddy-git.