Answer the question
In order to leave comments, you need to log in
How to automatically update the site on the server with Github?
Good afternoon!
I have hosting on Gino. How can I make the server automatically check for updates in the Github repository and download it to a specific folder?
And so that some files can be closed from changes, for example, db.php.
Answer the question
In order to leave comments, you need to log in
1. Don't forget Gino's hosting, Digital Ocean vps costs $5, not that much money.
2. By switching to VPS, discover the world of CI (continuous integration), if it will be very difficult to deal with CI systems, that is, simple scripts like this or that .
You can try this
1. powershell script with git commands
2. scheduler on the server to periodically pull this script.
but in general the site is always updated / spread by handles. good practice.
and you can update components through the admin panel, upload new versions of files.
Take advantage of this: https://developer.github.com/webhooks/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question