Here is a roundup or recent articles relating to code and coding. With the rise of frameworks such as node.js and angular.js and content management systems like Drupal, code is frequently something re-used or deployed rather than created for a specific task. That being said, it is still the foundation of all sites and needs to be chosen and deployed accurately.
After enormous amounts of frustration, I've finally worked out a recipe for working with composer, git and deployHQ - the submodules were the fly in the ointment, here is how to work with them.
First, create a new Drupal project using composer
>$ composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --stability dev --no-interaction
Next, rename web to public_html - so it plays nicely with cPanel
edit composer.json file - swap this in to replace the extras section renaming web to public_html
Last week we had advanced warning of a critical security update to Drupal core versions 6, 7 and 8. The message was that we should do these updates immediately as a remotely exploitable hole was being fixed.
The patches were due for release at 7pm GMT and we waited with developers across the world as the Drupal site crashed briefly. By 8pm we had the new code and by 10pm all of our sites were either patched with the short term fix supplied by Drupal or updated to the new secure release.
One of the biggest changes in the way we work over the last few years has been the introduction of version control into our workflow. As systems get ever more complex, we need better tools to manage them and this has led to using something called "Git". Git is great because it allows us to easily manage our workflow of "dev", "staging" and "live". Let's break that all down a bit and explain what it means.
CiviCRM Drupal is a winning combination, but they can be very fussy and demanding about how they are set up. Foreign key checks on database tables make it difficult to manage backups and site migrations for a CiviCRM data site in the way you would normally handle a Drupal website - but it can be done.
If you wish to remove the submodules, you can do so with the commands
git rm --cached profiles/commerce_kickstart/libraries/jquery.bxslider git rm --cached profiles/commerce_kickstart/libraries/jquery_expander git rm --cached profiles/commerce_kickstart/libraries/jquery_ui_spinner git rm --cached profiles/commerce_kickstart/libraries/selectnav.js Once you've done this commit and push your code and you should be able to deploy once more.
If you still have problems, try this:
As a follow up to our previous article - 12 Modules You Need to Know About - we've been asked about top Drupal modules which are essential to any web design and development project. So, here is a list of the best modules for Drupal 7 that we routinely add to every project we set up.
Drupal is an open source modular system, there are lots of modules out there but they are not all as good as they might seem. Over the years we have researched and tested hundreds of modules for different tasks, here are some of our favourites for Drupal 7.