https://github.com/bretrzaun/deploymentcommand
Console-Command to deploy an application to remote server(s).
https://github.com/bretrzaun/deploymentcommand
deployment rsync symfony-console
Last synced: 2 months ago
JSON representation
Console-Command to deploy an application to remote server(s).
- Host: GitHub
- URL: https://github.com/bretrzaun/deploymentcommand
- Owner: bretrzaun
- Created: 2017-11-29T15:56:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-28T15:30:02.000Z (about 3 years ago)
- Last Synced: 2025-03-10T13:49:42.663Z (3 months ago)
- Topics: deployment, rsync, symfony-console
- Language: PHP
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deployment Command
[](//packagist.org/packages/bretrzaun/deployment-command)
[](https://travis-ci.org/bretrzaun/DeploymentCommand)
[](//packagist.org/packages/bretrzaun/deployment-command)Symfony Console command to deploy an application to remote server(s).
## Installation
Install via Composer:
```composer require bretrzaun/deployment-command```
## Configuration
For each environment create a configuration file named like the environment.
The nodes must be accessible via SSH-based authentication or a keyfile can be given.
### Example
```json
{
"server" : {
"nodes" : ["user@my-server"],
"keyfile": "/path-to/keyfile",
"target" : "/target-folder",
"scripts" : {
"pre-deploy-cmd" : [],
"post-deploy-cmd" : [
"command1",
"command2"
]
}
},
"scripts" : {
"pre-deploy-cmd" : [
"composer install --no-dev -o"
],
"post-deploy-cmd" : [
"composer install"
]
}
}
```### Options
In the `options` section the following nodes can be defined:
#### script-timeout
Process timeout in seconds for each local script. Default value: 120 seconds
#### sync-timeout
Process timeout in seconds for sync. Default value: 300 seconds
## Usage
Register the console command to a Symfony console application:
```php
$console->add(new DeploymentCommand('path/to/config-folder/'));
```