//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////// Leads Form ////////////////////////// ////////////////////////////////// Version 7.x-8.x ////////////////////////// //////////////////////////////////////////////////////////////////////////////// Index ----- 0. Warnings | Important note 1. Bug Issues | List of bugs that corrects this version 2. Requirements | Requirements for different install/update 3. Requirements Module Contrib | List of versioned contrib modules necessary for the operation of the module 4. Requirements Module Oxymis | List of Studialis versioned modules 5.1 Install LDF | Installation LDF in clean environment (without LDF) 5.2 Install LDF ML | Installation LDF in clean environment (without LDF) (in multi language) 6.1 Update LDF | Upate LDF 7.1 Uninstall LDF | Uninstall LDF 7.2 Uninstall LDF ML | Uninstall LDF (in multi language) A. Purge field_data_deleted_* | To purge the database after re install the LDF B. Delete Commercial_item field CCK in Webform | Deletes the fields 'Commercial List to use' in the creation of a webform C. Launch CRON Synapse | Launch Cron Synapse via drush D.1 Shell launch CRON Synpase | CRON Synchro Synapse D.2 Shell launch CRON Event | CRON Synchro Event 0. Warnings ----------- 1. Bugs Issues -------------- CA-178 CA-193 2. Requirements --------------- WARNING : If these prerequisites are not met, the Webmaster must adapt its own process of install/update //ENVIRONMENT VARIABLE Now the module needs the environment variable WS_RAILS_HOST to work Ex: SetEnv WS_RAILS_HOST http://rails.si.oxymis.fr/ //DIRECTORY Before installing the modules, please ensure that the directories exist: sites/all/modules/contrib sites/all/modules/custom sites/all/modules/features //TOOLS PHP Version 7.0.x Drush Version >= 5.8 Drupal Version = 7.59 3. Requirements Module Contrib ------------------------------ All versions of the leads form works with versions of the following modules. //Studialis Contrib drush dl -y entity-7.x-1.9 --source=http://drupal.oxymis.fr/release-history --destination=sites/all/modules/contrib; drush dl -y entityreference-7.x-1.3 --source=http://drupal.oxymis.fr/release-history --destination=sites/all/modules/contrib; //Contrib drush dl --select views; drush dl --select features; drush dl --select ctools; drush dl --select replicate; drush dl --select webform; drush dl --select jquery_update; drush dl -y rules-7.x-2.11; Warning : The choice of a version, rather than another, of a module of the Contrib is left to the appreciation of the webmaster in relation to his site. The -y option takes the last supported version The --select option allows you to choose among all the activated versions 4. Requirements Module Oxymis ----------------------------- drush dl --select --all leads_form --source=http://drupal.oxymis.fr/release-history --destination=sites/all/modules/custom; Rq : It is recommended to specify the download version.(see section 3) 5.1 Install LDF --------------- drush en -y leads_form; drush cc all; > Launch update.php > Launch admin/config/studialis/configuration and check (step 1) > Synchro the Authority list (step 2) > Synchro the Catalog (step 3) 5.2 Install LDF ML ------------------ drush dl -y i18n --source=http://drupal.oxymis.fr/release-history --destination=sites/all/modules/contrib; drush dl -y i18nviews; drush en -y leads_form; drush en -y studialis_multilanguage; drush en -y i18nviews; drush cc all; 6.1 Update LDF -------------- > Deploy new versions (Except against indication , use the latest stable versions) > Launch update.php > Launch admin/config/studialis/configuration and check (step 1) > Synchro the Authority list (step 2) > Synchro the Catalog (step 3) 7.1 Uninstall LDF ----------------- drush dis studialis_menu -y; drush dis -y draggableviews; drush pm-uninstall leads_form -y; drush pm-uninstall studialis_sync_authority -y; drush pm-uninstall studialis_sync_catalog -y; drush pm-uninstall studialis_webform -y; drush pm-uninstall studialis_configuration -y; drush pm-uninstall commercial_list -y; drush pm-uninstall commercial_list_item -y; drush pm-uninstall draggableviews_book -y; drush pm-uninstall draggableviews -y; drush pm-uninstall commercial_authority -y; drush pm-uninstall commercial_item -y; drush pm-uninstall studialis_lead -y; drush pm-uninstall studialis_menu -y; drush cc all; 7.2 Uninstall LDF ML -------------------- drush dis studialis_menu -y; drush dis -y draggableviews; drush pm-uninstall leads_form -y; drush pm-uninstall studialis_multilanguage -y; drush pm-uninstall studialis_sync_authority -y; drush pm-uninstall studialis_sync_catalog -y; drush pm-uninstall studialis_webform -y; drush pm-uninstall studialis_configuration -y; drush pm-uninstall commercial_list -y; drush pm-uninstall commercial_list_item -y; drush pm-uninstall draggableviews_book -y; drush pm-uninstall draggableviews -y; drush pm-uninstall commercial_authority -y; drush pm-uninstall commercial_item -y; drush pm-uninstall studialis_lead -y; drush pm-uninstall studialis_menu -y; drush cc all; A. Purge field_data_deleted_* ----------------------------- > Ensure LDF is activated > Ensure that the control is available Drush (drush -v) > Launch : drush ldf-clear B. Delete Commercial_item field CCK in Webform ---------------------------------------------- > Ensure LDF is activated > Ensure that the control is available Drush (drush -v) > Launch : drush kw; C. Launch CRON Synapse ---------------------- > Synchronize studialis_lead table (DRUPAL) with application_files table (SYNAPSE) > Launch : drush php-eval 'studialis_webform_cron_execute()'; D.1 Shell launch CRON Synapse(UAT & PROD) ----------------------------------------- > cp ldf_synchro_synapse.sh /usr/sbin > chmod 755 ldf_synchro_synapse.sh > chown root. ldf_synchro_synapse.sh > Dans la CRON : > cd /etc/cron.d > #* * * * * pac-uat /usr/local/bin/ldf_synchro_synapse.sh /home/pac-uat/sites > /dev/null D.2 Shell launch CRON Event --------------------------- [PROD] ex : PMP > cp ldf_synchro_event.sh /usr/local/bin/ > chmod 755 /usr/local/bin/ldf_synchro_event.sh > chown root. /usr/local/bin/ldf_synchro_event.sh > vim /etc/cron.d/studialis //Toutes les heures > * */1 * * * pmp-admin . /etc/profile.d/studialis.sh; /usr/local/bin/ldf_synchro_event.sh /home/pmp-admin/sites | logger -t SYNCHRO_EVENT_PMP [UAT][VAGRANT] > cd sites/all/modules > drush php-eval 'studialis_sync_catalog_cron()'; //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////