therat/symdep

Additional tool for symfony deploy

6.1.1 2017-12-28 10:00 UTC

README

Often I execute a lot of similar commands for update my local project, thats why this project was created.

Latest Stable Version Total Downloads Latest Unstable Version License

SensioLabsInsight

Requirements

Any symfony project.

Install

composer require therat/symdep ~3.0

Create deploy.php file into your project

cp vendor/therat/symdep/deploy.php.example deploy.php

Add file symdep.lock to your .gitignore

Extend tasks

Modify properties

Example

/**
 * modify properties
 */
task(
    'env',
    function () {
        switch (get('build_type')) {
            case BuildType::TYPE_DEV:
                break;
            case BuildType::TYPE_TEST:
                break;
            case BuildType::TYPE_PROD:
                break;
        }
    }
);
after('properties', 'env');

Delete useless branch folder from test

./bin/project-drop-branches-from-test

Build new version of geggs

  • Create and push tag
  • Create phar
./bin/box-build
  • Go to github and upload new symdep.phar into new release
  • Publish new manifest
./bin/generate-manifest