O
O
Oleg Ostashov2016-03-28 16:51:02
git
Oleg Ostashov, 2016-03-28 16:51:02

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

3 answer(s)
L
littleguga, 2016-03-29
@olegostashov

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

I
Ivan Filatov, 2016-03-28
@NYMEZIDE

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.

A
Andrey Kobyshev, 2016-03-29
@yokotoka

Take advantage of this: https://developer.github.com/webhooks/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question