CodeIgniter Forums
Rolling updates out automatically? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Rolling updates out automatically? (/showthread.php?tid=70704)



Rolling updates out automatically? - doomie22 - 05-17-2018

Hi all,

I have not started my project yet using CI3 but I am coming up with a plan for it and I am wondering if its possible to get the project to look at a file location and if the files have been updated, you can click an update button (or have it check automatically) and update itself (the files will be on the same server but with a different domain)

I am just curious if its possible (I am sure it is) and if there is any simple examples out there that I can get ideas from?

Thanks,
Doomie


RE: Rolling updates out automatically? - jreklund - 05-17-2018

Hi, here are some basics on how to automatic update a program.

1. Store current version in a file/database
2. Make a GET request to your server with current version
2.1 Download a .zip file from your server, if there are a new version.
2.2. Unpack and replace all files
3. Profit!

As for an example, just look at some open source projects like Wordpress. They support automatic update.


RE: Rolling updates out automatically? - dave friend - 05-17-2018

There is a wealth of information and options are easily found if you spend some time searching the web. Here are some useful links I found in a couple minutes.

Website Deployment: Let Us Count The Ways!
How to deploy a website using git
The Ultimate List of Deployment Tools