Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Run bin/regen.sh on windows

Some things here might not be completely necessary or is not the typical way of doing it but is what worked for me.

  1. Do a regular install of drupal 7.
  2. Will need to use git-bash not git-cmd.
  3. Do an install of civicrm to get a working civicrm+drupal7 using the civicrm master tree from github plus civicrm-drupal and civicrm-packages. MAKE SURE YOU INSTALL CIVI IN A SEPARATE DATABASE, otherwise your drupal database will get wiped by this process.
  4. In the drupal root, composer require drush/drush:^8.0
  5. Update path so that it can find that drush.
  6. Optionally update path so that it can find node_modules/karma/bin/karma. It's optional because otherwise it will try to install it again but that also works. It doesn't get used here anyway.
  7. Create bin/setup.conf from bin/setup.conf.txt. Note that you need GENCODE_CMS=Drupal not lower-case drupal as it suggests.
  8. CIVISOURCEDIR means path to sites/all/modules/civicrm.
  9. Hack bin/regen.sh to change cms_eval 'civicrm_initialize();' to
cd ../../../../..
cms_eval 'civicrm_initialize();'
cd $CIVISOURCEDIR/sql
  1. From sites/all/modules/civicrm, run bin/regen.sh
  2. The sql/civicrm_generated.mysql file seems partly random, so to tell if it's working properly by comparing to the official release file is impossible. Although you can check the overall structure.

I also tried with drush in civi's vendor folder but it can't even do basic drush things from in there. It might work with a global install of drush.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.