Skip to content

Instantly share code, notes, and snippets.

@matthewpoer
Created October 5, 2018 01:43
Show Gist options
  • Save matthewpoer/d2efc395b31728752deaa9922edcb085 to your computer and use it in GitHub Desktop.
Save matthewpoer/d2efc395b31728752deaa9922edcb085 to your computer and use it in GitHub Desktop.
example SugarCRM/SuiteCRM .gitignore file for tracking the CRM as a whole application (vs. developing code as a Sugar plugin)
# assumes a top-level dir. structure like to:
# /.
# /.git/ (git is up here so all of the below are tracked)
# /.gitignore (this file)
# /crm/ (holds the Sugar/Suite application files)
# /db/ (holds database backups, or at least fields_meta_data and config and similar)
# /scripts/ (holds helper scripts for automated backups of database, quick repair, etc.)
# Ignore cache, but make sure it exists
crm/cache/*
!crm/cache/index.html
# Ignore derived files and junk from the custom directory
crm/custom/application/Ext
crm/custom/backup
crm/custom/history
crm/custom/modules/*/Ext
crm/custom/modules/*/workflow
crm/custom/modulebuilder
crm/custom/workflow
crm/custom/working
# Ignore logs
/crm/sugarcrm*log
/crm/install*log
/crm/shadow_upgrade.log
# Ignore uploaded files, except the placeholder and modules installed from Module Loader
crm/upload/*
!crm/upload/index.html
!crm/upload/upgrades/
crm/upload/upgrades/*
!crm/upload/upgrades/module
# avoid locally created .vagrant dir (but we will track the Vagrantfile)
.vagrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment