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

Sukhdev Mohan s.mohan at myti.it
Wed Apr 22 09:13:51 GMT 2020


Hi,
We are trying to do the same, trying to keep track of core and custom developments… No luck so far, so if anyone has idea on how this might work please share

Best Regards,
Sukhdev Mohan
———————————
Cel. (+39) 320 7020345
Email s.mohan at myti.it




> Il giorno 21 apr 2020, alle ore 21:49, Alan Lord <alanslists at gmail.com> ha scritto:
> 
> 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><mailto: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/
> 
> 
> _______________________________________________
> http://www.vtiger.com/ <http://www.vtiger.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200422/f267fd17/attachment.html>


More information about the vtigercrm-developers mailing list