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

Best practice site deployment?

Started by Muut Archive 10 years ago · 2 replies · 1383 views
10 years ago

Hi all,

I'm working on a private project and I'm a bit unsure of the best way to keep my local site and my hosted one synced and updated. At the moment I'm pushing my local grav user and theme folder to github and deploying the repo to my webserver. I manually update them. Does anyone know a better way to handle this?

Thanks

10 years ago

My recommendation is to store you user/ folder in source control. You can use either GitHub or Bitbucket with private repo, but then you can easily keep track of local changes and automatically have the source control system push those changes automatically to your production site when you commit/push.

Read this blog post: https://getgrav.org/blog/developing-with-github-part-1

10 years ago

I host a bare git repo on my server and push to that with a post-receive hook that copies the repo to a working directory, which is my web directory under nginix. It's been working pretty well. My only problem is that I have no way to integrate changes that a user makes on the live server back into git. Here's an article on the subject: http://toroid.org/git-website-howto

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1359 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2957 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago