Coder Social home page Coder Social logo

drush-scm's Introduction

Drush scm

Source code management script with drush. This script updates Drupal using drush and helps version control of git managed source code.

Usage (for Drush 9.x or later)

$ git clone https://github.com/blauerberg/drush-scm.git
$ cd {your_drupal_site_root}

# show help message
$ /path/to/drush-scm -h
$ /path/to/drush-scm ups -h
$ /path/to/drush-scm upc -h

# show unapplied security updates
$ /path/to/drush-scm ups

# update core and all modules to latest version with security fixes
$ /path/to/drush-scm upc

# update all modules other than addtoany and devel
$ /path/to/drush-scm upc --exclude-module drupal/addtoany,drupal/devel

# update only Drupal core
$ /path/to/drush-scm upc --module drupal/core

# update only addtoany
$ /path/to/drush-scm upc --module drupal/addtoany

Usage (for Drush 8.x)

$ git clone https://github.com/blauerberg/drush-scm.git
$ cd {your_drupal_site_root}

# show help message
$ /path/to/drush-scm -h
$ /path/to/drush-scm ups -h
$ /path/to/drush-scm upc -h

# show unapplied security updates
$ /path/to/drush-scm ups

# update core and all modules to latest version with security fixes
$ /path/to/drush-scm upc

# update all modules other than views and panels
$ /path/to/drush-scm upc --exclude-module views,panels

# update only Drupal core
$ /path/to/drush-scm upc --module drupal

# update only panels
$ /path/to/drush-scm upc --module panels

# update to views 7.x-3.8
$ /path/to/drush-scm upc --module views --version 7.x-3.8

# update ctools to lastest stable version
$ /path/to/drush-scm upc --module ctools --apply-no-security-update

Configuration

You can configure some options by override drush-scm.ini.

$ mkdir ~/.drush-scm
$ cp /path/to/drush-scm/drush-scm.ini ~/.drush-scm/drush-scm.ini

For example, if your Drupal site is in Docker container, you can use this script via docker-compose from host machine.

[common]
# DrushCommand = drush
# example for docker-compose
DrushCommand = docker-compose exec -T php drush

License

This software is released under the MIT License, see LICENSE.

drush-scm's People

Contributors

blauerberg avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.