therat / symdep
Additional tool for symfony deploy
Installs: 33 871
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=7.1
- deployer/deployer: ^6.0.3
- deployer/phar-update: ^2.0
- symfony/console: ^3.4|^4.0
- symfony/finder: ^3.4|^4.0
- symfony/process: ^3.4|^4.0
- symfony/yaml: ^3.4|^4.0
README
Often I execute a lot of similar commands for update my local project, thats why this project was created.
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