Git repopath & root directive confustion

Hi All,

I’m trying to deploy a simple static site to an Ubuntu droplet on Digital Ocean.

Here’s my Caddyfile:

http://178.62.68.16:8080
gzip
root /root/styleguide/public/
git https://github.com/wayneashleyberry/styleguide.git /root/styleguide/

Even though I’m setting absolute paths, things still seem to be getting a little confused.

root@ubuntu-2gb-lon1-01:~# ./caddy
Activating privacy features... done.
Cloning into '/root/styleguide/public/root/styleguide'...
remote: Counting objects: 217, done.
remote: Compressing objects: 100% (125/125), done.
remote: Total 217 (delta 69), reused 202 (delta 55), pack-reused 0
Receiving objects: 100% (217/217), 830.28 KiB | 0 bytes/s, done.
Resolving deltas: 100% (69/69), done.
Checking connectivity... done.
2016/11/01 12:15:24 https://github.com/wayneashleyberry/styleguide.git pulled.
http://178.62.68.16:8080

That path is completely wrong… but everything else is working and content is actually accessible

http://178.62.68.16:8080/root/styleguide/public/styleguide/

Pinging @abiosoft :slight_smile:

Oops. Looking into it.

@mholt looks like caddyserver.com/download does not include the latest version of Git.

@wayneashleyberry can you build from source ?

1 Like

@abiosoft Sorry. Will update ASAP.

1 Like

Yeah, no problem - I can build from source.

I actually found a workaround by using some obscure relative paths

myapp.com
gzip
root styleguide/public/
git https://github.com/wayneashleyberry/styleguide.git ../../styleguide

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.