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
Requires
- php: >=5.3.3
- paypal/rest-api-sdk-php: dev-master
Requires (Dev)
- symfony/framework-bundle: >=2.0
This package is auto-updated.
Last update: 2024-12-12 19:39:05 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.
- 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(), // ... );
- 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.
- 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