D
D
Dmitry Petrik2014-12-16 11:34:11
JavaScript
Dmitry Petrik, 2014-12-16 11:34:11

Yii. How to auto-update your app?

I am writing an application in Yii. There was a need to check for updates and install these updates via the Web interface. What is the best way to implement this?
So far, the considerations are as follows: we store the current version of the application in the database. Every time we open the application, we make a request to a remote server where the archive with updates is located. We check the version of the application archive with the version in the database. If the version in the archive is newer, the application downloads the archive, unpacks it with the replacement of files, and deletes the archive.
Maybe Yii already has some kind of implementation for such needs?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xtalen, 2014-12-16
@xom9lk

Here is a note on Habré: habrahabr.ru/company/webasyst/blog/122451/.
In general, it will be correct to use version control. Perhaps there are solutions to automatically check for commits and update. If the application and the database structure is changing, then look at the migrations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question