Place .deployer.yaml on root of project with content :
project:
name: My Projectsources:
-
type: svn # only svn suported.base_url: http://svn.source.com/svn/project/default_source: tags # can specicy all existing folder after base url. But if tags, the version is the next folder.project_target: .
-
type: svn-exportbase_url: http://svn.source.com/svn/project/default_source: configproject_target: app/config/shared:
- /app/config
- /vendor
- /app/logscommands:
pre:
- app/console cache:clear -e=prod --no-warmuppost:
- app/console cache:clear -e=prod
- rm -rf docker behat buildtarget:
- name: devserver: myserverenv: dev # the plateform environment (dev, preprod, prod)source: trunk #if you want overwrite the sourcefolder_dest: /var/www/projectallow_backup: false #if true, the folder project is copied before updateshared: [/app/config] # folder or file refered at the project rootInit the project and create the configuration (from the dev workstation) :
php deployer.phar project:initThis is the goal :
Deploy in the server :
php deployer.phar deploy <path to project>Project in management in this server :
php deployer.phar projectsUpdate an managed project :
php deployer.phar update <project name>Show if the managed project can update :
php deployer.phar update <project name> --dry-runShow all managed projects can be updated :
php deployer.phar update --dry-runThis command is forbiden for security reason :
php deployer.phar updateEffect : update all managed projects can be updated.