I'm writing a little app in KohanaPHP framework. Suppose, this app will have some updates in future. Current version is for example v1.0.
What is the best and the most optimal way to:
- check if there is some new version
- and if so, update files in current server from remote server
So far, I use cURL to get info form version.txt file in my remote file and then I compare it with constant variable in app engine. Then I use https://github.com/kanema/kohana-ftp module to connect with server and update app.
Is there any better solution, especially in checking for updates (this with version.txt is a bit annoying and take some time).