CiviCRM deployment from host to host
While working on a CiviCRMCiviCRM is an open source and freely downloadable constituent relationship management solution. CiviCRM is web-based, open source, internationalized, and designed specifically to meet the needs of advocacy, non-profit and non-governmental groups. site, I ran into a problem of migrating the installation from the development host to the QA, and from there to production. Since CiviCRM stores so much host-specific information in the database, every transfer needed to re-configure the host information. After much research and a little bit of pain, we discovered that the proper way to do this is to simply empty the config_backend field in the civicrm_domain table.
So with this little bit of code tacked onto our deployment scripts:
#Reconfigure the CiviCRM backend echo 'UPDATE civicrm_domain SET config_backend = NULL WHERE id = 1;' \ | ssh $USER@$HOST "mysql -h $DB_HOST -u $DB_USER -p$DB_PASSWORD $DB_NAME2"
deployments are once again flowing smoothly.

Comments
Post new comment