Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Keep website in sync with offline/online version?

Started by Muut Archive 11 years ago · 4 replies · 372 views
11 years ago

What is the best approach for managing a website with DVCS?
I have my grav website checked in a git repository. and then uploaded everything to my provider, except the .git repository.

Is this the common approach for managing a website?

11 years ago

The best approach is to deploy to your online site via the Git repo. I outlined the approach we use with a posthook here: http://getgrav.org/blog/developing-with-github-part-1 and http://getgrav.org/blog/developing-with-github-part-2

This is the approach we use for all our sites. We don't manage them live at all, everything is done local or on stating servers and then pushed to github/bitbucket which then automatically pushes to production.

11 years ago

From the article it is not clear for me, why I need the github wrapper for deploying my site?

11 years ago

You just need something public the production server can pull from. Also the posthook is handy too. You could use another service and manually pull too.

11 years ago

Try putting your code blocks in between ``` triple backticks...

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1352 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4063 9 years ago
Archive · by Muut Archive, 9 years ago
1 2949 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago