Git workflow with submodules for Drupal deployment

Maybe you've seen the great article on Drupal Deployment with Git Submodules, by Randy Fay. I manage this site using that strategy, but some times I forget how every operation is done. So here I'm collecting them for my own reference.

For fetching all the new info from submodules: 


git submodule foreach git fetch origin 

Now we go into each module folder and use:


git pull 

If we wanted to switch to a different branch, we should use:


git branch -a # we see the available branches 
git checkout 7.x-2.x # the different branch 

For commiting it, we go back to the contrib folder and do:


git add contrib-module-name 

At the end, we use:


drush updb --debug -y 

Maybe we see some warnings because of unresolved dependencies. In that case, add the new submodule:


git submodule add --branch 7.x-1.x git://git.drupal.org/project/entity.git sites/all/modules/contrib/entity 

Finally, updating core:


git merge drupal/7.x drush updb --debug -y 

Ok, so we've done this on our DEVELOPMENT site. If everything is OK, now it's time to update the server, after doing a backup:


git pull
git submodule update --init 
drush updb --debug -y

Tags: 

Comments

The beauty of SEO is the

The beauty of SEO is the reality once your website and even weblog advantages ground, the benefit the idea purchased from the seo surgery is pretty much long lasting. Employing advertising, you need to protect paying for your website website visitors; with online promotion, you get more and more site visitors plus it gets increasingly less expensive because website's status improves http://mattingbrush.tumblr.com/.

Just 20 decades Consultant

Just 20 decades Consultant Views facets out that people ought to be preserving 33% of our profits during years that are operating. For many this quantity will soon not be significantly secondary considering there is an extended pension becoming less unlikely.

I was interested if you ever

I was interested if you ever regarded modifying design of your site? Its very well written; I really like what you have to say. But maybe you could a little more in the way of material www.routermodem.sitey.me/ so individuals could interact with it better.You’ve got a lot of published text for only having one or 2 images. Maybe you could area it out better?

I was fascinated if you ever

I was fascinated if you ever considered changing style of your site? Its very well written; I really like what you have to say. But maybe you could a little more in the way of fabric www.bodylanguageworld.tumblr.com/ so people could communicate with it better.You’ve got a lot of released published text for only having one or 2 pictures. Maybe you could place it out better?

The capture is, regardless of

The capture is, regardless of what position you obtain on your web site or content, if no one is aware of it, or if everyone prevents studying 50 percent way through, everybody drops. So, you try to power nourish your redundancy to be able to obtain position without dropping people entirely in the procedure. Think "Family Feud" where the aggressive near relatives is known as Dawson. http://ladbrokesbooks.weebly.com/

Pages

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
To prevent automated spam submissions leave this field empty.
By submitting this form, you accept the Mollom privacy policy.