Maybe make the CMS a package, lock it's dependencies right down in composer. Then get a cron job to run composer update.
Dec 30, 2017
3
Level 7
how should i create automatic update for my application?
i developed a super lite laravel cms that user will install on their hosting. let say i want to update those cms that i distributed. my idea is:
-
each cms will run cron job every minute in background that check new version from official repo site.
-
if new version exist.
2.1 download new version (.zip)
2.2 replace old with new
is this the best way? if its not, can anyone show the best practice on how to roll out new update? halp!
Please or to participate in this conversation.