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

kabar berita bola di NOBARTV

Jadwal Nonton TV siaran langsung bola online http://goo.gl/3I6JNn di NOBARTV
Nonton siaran live tv streaming online http://goo.gl/8oHZu7 di NOBARTV
Kabar berita bola terbaru hari ini http://goo.gl/cj6kGZ NOBARTV
Kumpulan kabar berita bola terbaru http://goo.gl/a96CAV di NOBARTV.COM
Kumpulan jadwal pertandingan sepak bola terbaru http://goo.gl/f4JdXI di NOBARTV.COM
siaran langsung bundesliga jerman di http://goo.gl/Y1prII NOBARTV
siaran langsung la liga spanyol di http://goo.gl/7V5K2E NOBARTV
siaran langsung liga 1 perancis di http://goo.gl/1bNvT0 NOBARTV
siaran langsung liga inggris di http://goo.gl/6caU57 NOBARTV
siaran langsung serie a italia di http://goo.gl/WVO3oG NOBARTV

http://www.broadhealth.org

http://www.broadhealth.org Many health and safety management systems collapse under the weight of documentation and administration. How much of this resource intensive 'junk' do you actually need? By understanding your risk profile you can tailor your management system to suit your organisation. No 'junk' required.

Kami Toko Mebel

karya priboemi = http://goo.gl/ve5x67
karya funriture = http://goo.gl/5HXlC
jepara on = http://goo.gl/av4fD
mebel kursi = http://goo.gl/cen0R
jepara meubel = http://goo.gl/BeBnTr
furnitureku jati = http://goo.gl/zuCq7x
mebelku jati = http://goo.gl/un9i9v
kursi tamu jati = http://goo.gl/Og21fa
facebook mebel jepara = http://goo.gl/r6prbE
gebyok jati = http://goo.gl/jynVUv
meja makan minimalis = http://goo.gl/vFG4sM
kursi tamu sudut = http://goo.gl/5NIKJK

Alat Pemadam

Hello there! I know this is

Hello there! I know this is kind of off topic but I was wondering which blog platform are you using for this site? I’m getting fed up of WordPress because I’ve had problems with hackers and I’m looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.
ac repair burleson tx
http://www.acrfixair.com/

A number of us know all

A number of us know all relating to the compelling medium you present powerful steps on this blog and therefore strongly encourage contribution from other ones on this subject while our own child is truly discovering a great deal. Have fun with the remaining portion of the year.
wholesale apparel
http://www.apparelcandy.com

Please let me know if you’re

Please let me know if you’re looking for a author for your site. You have some really great posts and I think I would be a good asset. If you ever want to take some of the load off, I’d really like to write some material for your blog in exchange for a link back to mine. Please shoot me an email if interested.
Smart Drugs
http://www.nootropics.net/

I was curious if you ever

I was curious if you ever considered changing the layout of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better.You’ve got an awful lot of text for only having one or 2 pictures. Maybe you could space it out better?
Nootropics Reviews
http://www.nootropics.net/

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.