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

Toko mebel online http:/

Toko Mebel Online http://www

Toko Mebel Online http://www.jeparaonline.org
Toko Mebel Jepara Online http://www.jeparameubel.com
Toko Mebel Kursi http://www.mebelkursi.com
Toko Furniture Karya http://www.karyafurniturejepara.com
Toko Furniture Priboemi http://www.karyapriboemijepara.com
karya funriture = http://goo.gl/5HXlC
karya priboemi = http://goo.gl/ve5x67
jepara on = http://goo.gl/av4fD
mebel kursi = http://goo.gl/cen0R
jepara meubel = http://goo.gl/BeBnTr

you are oke

PRODUCT NOTICE Important information about your product · FIRMWARE UPDATE Download latest firmware · OLD DRIVER ARCHIVE Download driver of old if you need the driver printer, you can check at http://driverresetter.blogspot.com/
brother at your side. Brother Solution Center ... Any trade names and product names of companies appearing on Brother products, related documents and any ... if you need the driver printer, you can check at http://2downloaddriver.com/
Samsung Galaxy S5 review | The S5 delivers fantastic specs and an amazing screen and is only let down by an uninspiring design. Reviews ... if you need the gadgets info, you can check at http://gadgetsdrunk.blogspot.com/
Land Rover cars: research Land Rover cars, read Land Rover reviews, find Land Rover car listings and get Land Rover pricing & dealer quotes. if you need the last info about car automotive, you can check at http://yourautocar.blogspot.com/
Find technology questions and answers in this community of information technology (IT) experts and professionals. if you need the last info update about technology, you can check at http://echokita.blogspot.com/
Welcome to the Official HP Drivers and Downloads page featuring HP drivers for printers, scanners, laptops and more. Start with our Driver Product Search. if you need more info about geophysics, you can check at http://rahmatprinterdriverdownload.blogspot.com/

Hello Bro

Saya sendiripun sampai saat ini http://berbagiprediksi.blogspot.com/2014/11/rajamerah.html , 17 tahun hidup di dunia, pernah mengalami yang namanya jatuh cinta lalu terluka *halah* , belum bisa mendeskipsikan sendiri apa itu yang namanya cinta. I mean, setiap orang, dari pengalaman yang telah mereka dapatkan http://berbagiprediksi.blogspot.com/2014/11/indomasterbola.html , mereka akan bisa menyimpulkan sendiri versi ‘arti cinta’ menurut mereka masing-masing, nah sementara saya belum bisa melakukannya. Entah karna kurang pengalaman atau perasaan saya ini yang emang bebal http://goo.gl/vYinlq, entahlah. https://www.gcx.org/agenonline

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.