Often I execute a lot of similar commands for update my local project, thats why this project was created.
Any symfony project.
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
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');
./bin/project-drop-branches-from-test
- 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