https://github.com/e-commit/deploy-rsync-bundle
Deploy Symfony project with Rsync
https://github.com/e-commit/deploy-rsync-bundle
deploy rsync ssh symfony symfony-bundle
Last synced: 7 months ago
JSON representation
Deploy Symfony project with Rsync
- Host: GitHub
- URL: https://github.com/e-commit/deploy-rsync-bundle
- Owner: e-commit
- License: mit
- Created: 2021-02-01T20:57:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-15T13:15:56.000Z (10 months ago)
- Last Synced: 2025-05-18T11:16:41.306Z (8 months ago)
- Topics: deploy, rsync, ssh, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EcommitDeployRsyncBundle
The EcommitDeployRsyncBundle bundle (for Symfony) deploys your Symfony project with RSYNC.

## Installation ##
Install the bundle with Composer : In your project directory, execute the following command :
```bash
$ composer require ecommit/deploy-rsync-bundle
```
Enable the bundle in the `config/bundles.php` file for your project :
```php
return [
//...
Ecommit\DeployRsyncBundle\EcommitDeployRsyncBundle::class => ['all' => true],
//...
];
```
In your project, add the configuration file `config/packages/ecommit_deploy_rsync.yaml` :
```yaml
ecommit_deploy_rsync:
#Environments configuration
environments:
my_server1: #Environment name
#Target - Required
#The target can be either an SSH target or a local target
#SSH target format: ssh://@: or ssh://@::
#Local target format: file://
target: ssh://myuser@myserver.com:/home/remote_dir
#rsync_options: [] #Rsync command options - Not required - Default values: [] - If not defined, the global rsync_options is used
#ignore_file: #Rsync ignore file - Not required - Default value: null - If not defined, the global ignore_file option is used
#You can define others environments :
#my_server2:
#target: ssh://myuser@myserver2.com:/home/remote_dir
#Rsync global configuration
#rsync:
#rsync_path: rsync #Rsync bin path - Not required - Default value: "rsync"
#rsync_options #Rsync command options (global) - Default values:
# - '-azC'
# - '--force'
# - '--delete'
# - '--progress'
#ignore_file: #Rsync ignore file - Not required - Default value: null
```
## Usage ##
```bash
#Perform a trial run with no changes made
php bin/console ecommit:deploy-rsync my_server1
#Execute the changes
php bin/console ecommit:deploy-rsync my_server1 --go
```
## License ##
This bundle is available under the MIT license. See the complete license in the *LICENSE* file.