[Vtigercrm-developers] Tips on how to setup vtiger dev environment

Alan Lord alanslists at gmail.com
Tue Apr 21 19:49:58 GMT 2020


I guess the silence means none of us has a "really" good solution ;-)

What I do now is like this... I only manage _changed_ vtiger files in a 
project or customer or custom-module git repo (sometimes multiple repos 
in one project). I don't clone the whole vtiger tree into these - if I 
have to change core code I import the required files along with their 
standard path into the relevant repo structure, e.g..

> /root_of_my_repo/modules/Vtiger/models/Model.php
> /root_of_my_repo/data/CRMEntity.php
> /root_of_my_repo/layouts/v7/modules/Vtiger/RecentActivities.tpl 

(That last one is actually quite a common one. I have quite a few 
customers ask to swap the date/time formatting of the History and 
Comment displays so instead of it showing "3 days ago", it shows the 
actual date and time stamp and the "3 days ago" bit goes into the title 
attribute (on hover).

On a development server I generally symlink[1] these files and 
directories from the test vtiger system back to the repo(s) which are 
usually in my home directory. Once the dev work is ready for production 
I *copy* the files into the vtiger system. Once a system is in 
production, changes tend to be fairly minor so it isn't a big deal to 
just do a git pull into the repo on the production server and then copy 
a few files into the vtiger directory when something needs to be updated.

I kind of made this process up as I have gone along and I have no idea 
of I am doing it in a "correct way" or not but it works for me.

FWIW I'd be interested to hear how others manage their dev workflows too.

[1] There are tests in vtiger code that causes it to die if it tries to 
load a symlinked file so these tests have to be disabled in the 
development system.

HTH


Al


On 21/04/2020 19:28, Rubén A. Estrada Orozco wrote:
> Anyone?
> Alan?
> Uma?
> 
> Saludos
> 
> Rubén
> 
> 
> On Fri, Apr 17, 2020 at 6:57 PM Rubén A. Estrada Orozco 
> <rulotec1 at gmail.com 
> <mailto:rulotec1 at gmail.com>> wrote:
> 
>     Hi everyone,
> 
>     I wonder if someone can share tips on how to setup a git-friendly
>     development environment for vtiger.
> 
>     The thing is: if you clone the repository and then install vtiger
>     you end up with a lot of "Untracked files". Mainly modules and
>     translations that live in the pkg folder. If you change translation
>     files under the languages folder, you have to copy them back to the
>     pkg folder so that you can make a commit. The same applies for
>     modules such as Google, ModTracker, etc.
> 
>     Furthermore, if you pull changes from the repository and changes
>     have been made to files inside the pkg folder, you have to either
>     copy them manually to their corresponding "after-install location"
>     or install Vtiger again.
> 
>     Well, I hope you get the idea...
> 
>     Can you share tips on how to organize that? I'm guessing some sort
>     of build script would help. Someone has one and is willing to share
>     it? any other ideas?
> 
>     Have a good weekend and stay healthy!
> 
>     Saludos
> 
>     Rubén
> 
> 
> _______________________________________________
> http://www.vtiger.com/
> 




More information about the vtigercrm-developers mailing list