Skip to content

Demoboy/UpdateBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KMJUpdateBundle

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

About

Keeps your repository in sync with your server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages