Welcome Guest, Not a member yet? Register   Sign In
Rolling updates out automatically?
#1

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
Reply
#2

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.
Reply
#3

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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB