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

Add new comment | Penyaskito Blog

Its such as you learn my mind! You seem to grasp so much about this, such as you wrote the book in it or something.
I feel that you simply can do with some percent to pressure the message house a bit, however instead
of that, that is excellent blog. A fantastic read. I will definitely be back.

Also visit my website; <a href="http://tinyurl.com/y6f6pou6">web hosting service</a>

Add new comment | Penyaskito Blog

Definitely believe that which you stated. Your favorite reason appeared to be on the net thhe easiest
hing to be aware of. I say to you, I definitely get annoyed while people
think about worries that they plainly do not know about.
You managed to hit the nail upoon the top and also defined out the whole thing
without having side effect , people can take a signal.
Will probably be back to geet more. Thanks

my website ... early american survival skills ( Alycia - http://100203.com/space.php?uid=360&do=blog&id=491 )

Add new comment | Penyaskito Blog

Hello! I know this is kina off topic however I'd figured I'd ask.
Would you be interessted in trading links or maybe guest
authoring a blpg article or vice-versa? My blog discusses a lot of the same subjects as yours and I believe we could greatly benefit from each other.
If you are interested feel free to shoot me an email.
I look forward to hearing from you! Awesome blog by the way!

my page: fut millionaire tips - http://kgti.kg/user/MaryellenWhittin/

Add new comment | Penyaskito Blog

I am really enjoying the theme/design of your web site.

Do you ever run into any browser compatibility issues?
A few of my blog readers have complained about my site not operating correctly in Explorer but looks great in Chrome.

Do youu have any suggestions to help fix tjis issue?

Feel free to surf to my webpage - <a href="http://home.mokao123.com/space.php?uid=4823&do=blog&id=10318">magic submitter get</a>

Add new comment | Penyaskito Blog

I was wondering if you ever thought of changing the layout of your
site? Its very well written; I love what youve got to
say. But mayve you could a little more iin the way of content
sso people could connect with iit better. Youve got an awful
lot of text for only having one or two images. Maybe you could space it out better?

Feeel free to surf to my web-site what is kindle money mastery program - http://oduck.xyz/space.php?uid=3589&do=blog&id=7040

Add new comment | Penyaskito Blog

hello there and thank you for your info – I have certainly picked up something new from right
here. I did however expertise several technical points using this web site, as I experienced to
reload the web site a lot of times previous to I could get it to load properly.
I had been wondering if your hosting is OK? Not that I'm complaining, but
sluggish loading instances times will sometimes
affect your placement in google and can damage your high-quality score if ads and marketing with Adwords.

Anyway I am adding this RSS to my email and can look out for a lot more of your respective exciting
content. Ensure that you update this again soon.

my webpage: <a href="http://gmis.org.au/content/helpful-tips-maximizing-your-online-profits">...

Some 'SEOs' do seo and some

Some 'SEOs' do seo and some do online look for motor adjustment. Of course, it is all promoted as SEO. Illegal marketing provides outcomes at any cost and is always temporary (usually ends in a prohibited domain name) .

Add new comment | Penyaskito Blog

With havin so much content do you ever run into any
issues of plagorism or copyright violation? My website
has a lot of unique content I've either created myself or outsourced but it appears a lot of it is popping it up all
over the internet without my permission. Do you know any ways to help prevent content from being ripped off?
I'd truly appreciate it.

Also visit my website ... <a href="http://mosaicpages.com/__media__/js/netsoltrademark.php?d=webcore-ict.co... chinas</a>

Add new comment | Penyaskito Blog

Hiya! Quick question that's completely off topic. Do you know how to make your site mobile friendly?
My site looks weird when viewing from my iphone.

I'm trying to find a theme or plugin that might be able to fix this
issue. If you have any suggestions, please share. With thanks!

Also visit my web-site web hosting providers - http://tinyurl.com/y5olef8p

Add new comment | Penyaskito Blog

Magnificent goods from you, man. I have understand your stuff previous to and
you're just extremely magnificent. I actually like what you've acquired here, certainly like what you're stating and the way in which you say it.
You make it entertaining and you still care for to keep it sensible.
I cant wait to read far more from you. This is actually a great site.

Here is my website - cheap flights with jet2 sale flights - http://123land.tumblr.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.