kmj/updatebundle

Symfony2 Bundle that manages keeping code and database up to date with eachother on a constant basis

Installs: 69

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2013-07-01 20:42 UTC

This package is auto-updated.

Last update: 2024-11-12 19:31:31 UTC


README

Welcome to the KMJUpdateBundle. The goal of this bundle is to provide an easy way to keep code bases the same across servers, a push once and it will get done approach.

  1. Installation

KMJUpdateBundle can conveniently be installed via Composer. Just add the following to your composer.json file:

// composer.json
{
    // ...
    require: {
        // ..
        "kmj/updatemaster": "dev-master"

    }
}

Then, you can install the new dependencies by running Composer's update command from the directory where your composer.json file is located:

    php composer.phar update

Now, Composer will automatically download all required files, and install them for you. All that is left to do is to update your AppKernel.php file, and register the new bundle:

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new KMJ\UpdateBundle\KMJUpdateBundle(),
    // ...
);
  1. Usage

The KMJUpdateBundle is called as console command only.

app/console kmj:update:update

Based on the configuration selected, this command will pull branch selected, either install composer.phar to the latest lock file or update it to the newest available version, and finally if the command is not running in the production environment, it will use the KMJSyncBundle and sync uploaded files and the database.

  1. Configuration

kmj_update: sync: true #set to false if you do not want the database to sync or you do not have the KMJSyncBundle installed composershouldupdate: true #set to false to have composer use the lock file to install dependencies git: remote: origin #The remote name in the git config branch: develop #The banch to pull from on the remote server