• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rolling updates out automatically?

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?


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.

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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.