Welcome Guest, Not a member yet? Register   Sign In
How to test, deploy and administer CI app
#3

(This post was last modified: 01-11-2015, 11:44 AM by dmyers.)

Yes with CodeIgniter you can certainly FTP everything up and it should work. That said some of the things you are talking about need additional services setup.

For example for "automated testing and deployment" you are talking about CI or Continuous Integration (not CodeIgniter).

In order to use that you would need to meet the following criteria.

1. You have wrote some form of unit testing (PHPunit being the most popular - shoot for 80% code coverage or higher)
2. You use some form of source code management (GitHub or BitBucket)
3. You setup a Continuous Integration Server (Jenkins or Hudson)

Then you setup your CI server to check out the GIT repro every time there is a change. It will then run all the Unit Tests. Finally it will automatically deploy your code to your testing server (or production if your adventurous) if they all pass. QA then can run there tests as needed on the test server etc... and you can deploy once your sprint or what ever is over.

Of course if any tests fail it will notify the person that made the commit. (ie. what ever you did broken some test... fix it!) and it won't update testing server etc...


Of course at a minimum you could test locally then once everything passes you can push to GIT switch over to the test server and pull down your repro updates. Finally pull again down to production.

Test and production "could" be on the same server to save money both pointing to 2 different database servers then you "could" test.example.com and www.example.com. Or you could skip the test server and go from you sandbox to production. That's 1 step above FTPing but at least using GIT you can rollback if anything goes wrong! FTPing is usually all or nothing (unless you have a really smart FTP program) GIT only downloads what changed and is "almost" instant.

How many are on your team?
Reply


Messages In This Thread
RE: How to test, deploy and administer CI app - by dmyers - 01-11-2015, 11:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB