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

tUTORIAL photoshop lengkap

tUTORIAL photoshop lengkap click here <a href="http://trikmudahphotoshop.com/2014/09/naruto-shippuden-episode-376-subti... Shippuden Episode 376 subtitle indonesia</a>

Donload anime <a href="http://trikmudahphotoshop.com/2014/09/naruto-shippuden-episode-376-subti... Episode 376 subtitle indonesia</a>
jangan lup download terus <a href="http://trikmudahphotoshop.com/2014/09/naruto-shippuden-episode-376-subti... Shippuden Episode 376 indonesia</a>

Android Smartphones Price List September 2014 <a href="http://trikmudahphotoshop.com/2014/09/daftar-harga-smartphone-android-se... Harga Smartphone Android September 2014</a>

How to combine 2 different Objects <a href="http://trikmudahphotoshop.com/2014/09/cara-menggabungkan-2-objek-yang-be... menggabungkan 2 Objek yang berbeda</a>

How to Make Transparent Images In Photoshop Being<a href="http://trikmudahphotoshop.com/2014/09/cara-membuat-gambar-menjadi-transp... Membuat Gambar Menjadi Transparan Di Photoshop</a>

Here Mistakes When Designing a Logo Designer<a href="http://trikmudahphotoshop.com/2014/09/kesalahan-desainer-saat-mendesain-... Kesalahan Desainer Saat Mendesain Logo</a>

Understanding Graphic Design<a href="http://trikmudahphotoshop.com/2014/09/pengertian-desain-grafis.html">Pen... Desain Grafis</a>

Meaning of the color of your design<a href="http://trikmudahphotoshop.com/2014/09/makna-warna-pada-desain-anda.html"... warna Pada Desain Anda</a>

Printers Types And Function Printer<a href="http://trikmudahphotoshop.com/2014/09/jenis-jenis-printer-dan-fungsi-pri... Printer Dan Fungsi Printer</a>

Types of Printer Ink<a href="http://trikmudahphotoshop.com/2014/09/jenis-jenis-tinta-printer.html">Je... Tinta Printer</a>

Smartphone http:/

smartphone murah http://www

smartphone bagus dan murah

smartphone yang bagus http:/

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.
Filter Cleaning
http://www.reflowsolutions.com

My developer is trying to

My developer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using Movable-type on several websites for about a year and am anxious about switching to another platform. I have heard great things about blogengine.net. Is there a way I can transfer all my wordpress posts into it? Any help would be really appreciated!
Insect Repellent
http://www.amazon.com/gp/product/B00CH7JAS2

Write more, thats all I have

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?
osteopath east london
http://www.oneaddison.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.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.