Nona Urbiz
Nona Urbiz

Reputation: 5013

how can I set up a website to mirror whatever is pushed to git?

how can I set up a domain to mirror the files hosted on a git repository (github.com/nospampleasemam/dylanstestserver and dylanstestserver.com). The repository is of a website, so I want to host the files stored in the repository, not just mirror the files for download.

thanks!

Upvotes: 1

Views: 228

Answers (2)

J-16 SDiZ
J-16 SDiZ

Reputation: 26920

You can use a hook to checkout the repository at the server side.

(there is a typo on the linked page.... it is $REF, not $RE)

Upvotes: 0

tanjir
tanjir

Reputation: 1334

From that web server, you can set a cron job to "pull" frequently.

Upvotes: 1

Related Questions