2017 © Pedro Peláez
 

library symdep

Additional tool for symfony deploy

image

therat/symdep

Additional tool for symfony deploy

  • Friday, July 6, 2018
  • by TheRatG
  • Repository
  • 1 Watchers
  • 3 Stars
  • 11,796 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 24 Versions
  • 7 % Grown

The README.md

SymDep

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

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

SensioLabsInsight, (*3)

Requirements

Any symfony project., (*4)

Install

composer require therat/symdep ~3.0

Create deploy.php file into your project, (*5)

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

Add file symdep.lock to your .gitignore, (*6)

Extend tasks

Modify properties

Example, (*7)

/**
 * 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

The Versions

06/07 2018