Closed bzerangue closed 8 years ago
Sure thing. I'll try and have one up by wednesday. Here's what I consider the most important things:
1) Get caddy with hugo extension from caddy's web site. Move the "caddy" binary to /usr/bion
tar xvf caddy.tar.gz
mv caddy /usr/bin
2) Make a Caddyfile in the folder you want to serve content from and edit content with caddy-hugo. This was tough for me. Here's mine:
cat Caddyfile
sharebitstalk.io www.sharebitstalk.io technologistguild.com www.technologistguild.com {
gzip # tells caddy to compress traffic
proxy / 192.168.191.206:80 # / tells caddy that it should proxy to the folder / and 192.168.191.206:80 Tells Caddy what URL to proxy at /
tls email=jake@klouds.org # Tells let's encrypt your e-mail address
}
chat.sharebitstalk.io {
gzip
proxy / 192.168.191.206:8065
tls email=jake@klouds.org
}
klouds.org www.klouds.org {
gzip
tls email=jake@klouds.org
root /root/hugo-semantic-homepage-starter/dist # Tells CADDY which folder to serve as the root
basicauth /admin faddat ******* # protect the admin area using HTTP basic auth
hugo /root/hugo-semantic-homepage-starter # Tells HUGO which folder to execute in
}
3) Save your Caddyfile and run caddy with the command, executed in the same folder as the Caddyfile.
caddy
Hello @bzerangue! Like to hear that someone is using (or trying to use) caddy-hugo! Hope you enjoy and hope @faddat can help! Thanks for helping @faddat :)
Sure thing! Thinks for the awesome tool, @hacdias!
You're welcome :D
With Docker, it's easy. Go to the folder containing the Hugo project, then
docker run -d -v $(pwd):/srv -p 2015:2015 ludovicc/caddy-hugo
Screencast coming some time this hour :).
Awesome!
On Wed, Feb 24, 2016 at 8:02 PM, Jacob Gadikian notifications@github.com wrote: Screencast coming some time this hour :).
— Reply to this email directly or view it on GitHub [https://github.com/hacdias/caddy-hugo/issues/50#issuecomment-188560293] .[https://github.com/notifications/beacon/AABqG8-OdBfjgAO2CsPvrwebhPwKF2Jcks5pnlg7gaJpZM4HfPgT.gif]
@ozzadar has been making awesome videos on windows lately-- anyone know a great video editor for Linux? Goal: "out-class Corel Video"
Maybe one hour from now.... work..... On Feb 25, 2016 9:03 AM, "Brian Zerangue" notifications@github.com wrote:
Awesome!
On Wed, Feb 24, 2016 at 8:02 PM, Jacob Gadikian notifications@github.com wrote: Screencast coming some time this hour :).
— Reply to this email directly or view it on GitHub [https://github.com/hacdias/caddy-hugo/issues/50#issuecomment-188560293] .[ https://github.com/notifications/beacon/AABqG8-OdBfjgAO2CsPvrwebhPwKF2Jcks5pnlg7gaJpZM4HfPgT.gif]
— Reply to this email directly or view it on GitHub https://github.com/hacdias/caddy-hugo/issues/50#issuecomment-188560399.
Does anyone have a good guide for doing screencasts? I've made this one twice now but it takes an hour to show what shouldn't be longer than 15 minutes....
I've never done that so I can't help you with that :(
I'll close this issue right now because of the lack of the activity on it. If you want to reopen it, just tell me. :+1:
I know this is 8 mos old, but I'd like to see this screencast. I've been reading through the issues and documentations, etc and I am still having some trouble getting caddy + hugo hosted on github to work properly :(
Hello @liz-miller, if you really need it, I could do it in the weekend probably, but tell me: what have you already done and where is it failing? 🙂
I've completed the following:
Now what I want to do is add caddy-Hugo for the ability to blog anywhere.
I've done the following for caddy:
I'm not at my computer now, but I will send you the caddyfile and output errors later on.
It's probably something simple I'm missing...
On Feb 7, 2017, at 14:41, Henrique Dias notifications@github.com wrote:
Hello @liz-miller, if you really need it, I could do it in the weekend probably, but tell me: what have you already done and where is it failing? 🙂
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
To use caddy-hugo you'll need to have it set up on your own server but it seems you're using Github Pages. Anyway, if you can send me the Caddyfile I can check if it has got any error related to hugo 😄
I see. Well that could be the reason for my problems. I didn't realize I couldn't host using github -_-
On Feb 7, 2017, at 14:54, Henrique Dias notifications@github.com wrote:
To use caddy-hugo you'll need to have it set up on your own server but it seems you're using Github Pages. Anyway, if you can send me the Caddyfile I can check if it has got any error related to hugo 😄
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
You can host a Hugo website using Github Pages but you can't use Caddy + this plugin with github pages.
will Caddy + Caddy-Hugo work with hosting on AWS?
I'm not sure how does AWS work (never used it). But if it's like a VPS it will work for sure.
Would you mind doing a brief screencast on how to setup and use caddy-hugo? It would be extremely helpful to see how you install and setup and use Hugo for Caddy.