CodeIgniter Forums
Version Control - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Version Control (/thread-37357.html)

Pages: 1 2


Version Control - El Forum - 01-06-2011

[eluser]atw[/eluser]
Hi guys,

I know that there are a lot of questions on here and other forums about Version Control but I have a question which never seems to be covered by anyone (I may well be wrong about that Smile

Do you guys version control the whole CI website, including the index.php and ./system folder or do you simply version the ./application folder?

Many thanks,


atw


Version Control - El Forum - 01-06-2011

[eluser]WanWizard[/eluser]
The entire site.

I want a direct link between the application's code and the version of the framework used. And with /system versioned as well, it's not to difficult to merge in updates to the framework. It will allow you do see the modifications a merge would make, and judge wether or not they will impact your application.


Version Control - El Forum - 01-06-2011

[eluser]Nick_MyShuitings[/eluser]
I run a different route, I run several sites off of an identical systems folder. Reason being is that the sites are almost clones of one another. Views and specific files are modified from one to another, but the controllers, libraries, and such are identical.

In my case it made more sense to keep system under one version control repo (Hg) and each application in its own repo (Hg).

(the logic was also compounded by how Dreamhost makes you do file structure... this way I can update each site indiv, and push system patches (like 1.72 to 1.73) seperately.


Version Control - El Forum - 01-07-2011

[eluser]smilie[/eluser]
For my project I also place whole CI in SVN (system + 5 sites).
They are all part of same project, so that makes it easier Smile

Tho' I can imagine in case like Nick said, that it is easier to do it separately.

Cheers,
Smilie


Version Control - El Forum - 01-07-2011

[eluser]Eric Cope[/eluser]
I put the whole CI in SVN or Git.


Version Control - El Forum - 01-12-2011

[eluser]atw[/eluser]
The consensus seems to be, put everything under version control (unless you have a reason not to).

If anybody else would like to comment about how they do version control, please feel free (I'm sure I and others wold benefit from the collective CodeIgniter wisdom).


Version Control - El Forum - 01-12-2011

[eluser]Eric Barnes[/eluser]
I put everything even notes if I have them. The only thing I do not put in version control is passwords for the db and/or email.


Version Control - El Forum - 01-12-2011

[eluser]Devon Lambert[/eluser]
The whole nine yards.... ohhhh sorry, yeah I put the whole site, including system folder. For all the reasons outlined above.


Version Control - El Forum - 01-13-2011

[eluser]atw[/eluser]
@Eric Barnes: How do you, personally, stop your passwords going under VC? Do you tell the VC app to ignore .../config/database.php (via .hgignore et al)?


Version Control - El Forum - 01-13-2011

[eluser]Eric Barnes[/eluser]
[quote author="atw" date="1294983772"]@Eric Barnes: How do you, personally, stop your passwords going under VC? Do you tell the VC app to ignore .../config/database.php (via .hgignore et al)?[/quote]

Depends on the site. But here is how I normally do it.

I create a database.orig.php and then add database.php to the ignore list. This way when you create database.php it will never be committed.