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:
root /root/styleguide/public/
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 pulled.

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

Pinging @abiosoft :slight_smile:

Oops. Looking into it.

@mholt looks like 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
root styleguide/public/
git ../../styleguide

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