{"id":16463834,"url":"https://github.com/bretrzaun/deploymentcommand","last_synced_at":"2026-01-18T10:27:08.596Z","repository":{"id":62496917,"uuid":"112495842","full_name":"bretrzaun/DeploymentCommand","owner":"bretrzaun","description":"Console-Command to deploy an application to remote server(s).","archived":false,"fork":false,"pushed_at":"2022-05-28T15:30:02.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T13:49:42.663Z","etag":null,"topics":["deployment","rsync","symfony-console"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bretrzaun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-29T15:56:51.000Z","updated_at":"2022-05-28T15:30:04.000Z","dependencies_parsed_at":"2022-11-02T11:46:14.080Z","dependency_job_id":null,"html_url":"https://github.com/bretrzaun/DeploymentCommand","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bretrzaun%2FDeploymentCommand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bretrzaun%2FDeploymentCommand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bretrzaun%2FDeploymentCommand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bretrzaun%2FDeploymentCommand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bretrzaun","download_url":"https://codeload.github.com/bretrzaun/DeploymentCommand/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217326,"owners_count":20903038,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deployment","rsync","symfony-console"],"created_at":"2024-10-11T11:15:43.574Z","updated_at":"2026-01-18T10:27:08.577Z","avatar_url":"https://github.com/bretrzaun.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deployment Command\n\n[![Latest Stable Version](https://poser.pugx.org/bretrzaun/deployment-command/v)](//packagist.org/packages/bretrzaun/deployment-command)\n[![Build Status](https://travis-ci.org/bretrzaun/DeploymentCommand.svg?branch=master)](https://travis-ci.org/bretrzaun/DeploymentCommand)\n[![License](https://poser.pugx.org/bretrzaun/deployment-command/license)](//packagist.org/packages/bretrzaun/deployment-command)\n\nSymfony Console command to deploy an application to remote server(s).\n\n## Installation\n\nInstall via Composer:\n\n```composer require bretrzaun/deployment-command```\n\n## Configuration\n\nFor each environment create a configuration file named like the environment.\n\nThe nodes must be accessible via SSH-based authentication or a keyfile can be given.\n\n### Example\n\n```json\n{\n    \"server\" : {\n        \"nodes\" : [\"user@my-server\"],\n        \"keyfile\": \"/path-to/keyfile\",\n        \"target\" : \"/target-folder\",\n        \"scripts\" : {\n            \"pre-deploy-cmd\" : [],\n            \"post-deploy-cmd\" : [\n                \"command1\",\n                \"command2\"\n            ]\n        }\n    },\n    \"scripts\" : {\n        \"pre-deploy-cmd\" : [\n            \"composer install --no-dev -o\"\n        ],\n        \"post-deploy-cmd\" : [\n            \"composer install\"\n        ]\n    }\n}\n```\n\n### Options\n\nIn the `options` section the following nodes can be defined:\n\n#### script-timeout\n\nProcess timeout in seconds for each local script. Default value: 120 seconds\n\n#### sync-timeout\n\nProcess timeout in seconds for sync. Default value: 300 seconds\n\n\n## Usage\n\nRegister the console command to a Symfony console application:\n\n```php\n$console-\u003eadd(new DeploymentCommand('path/to/config-folder/'));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbretrzaun%2Fdeploymentcommand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbretrzaun%2Fdeploymentcommand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbretrzaun%2Fdeploymentcommand/lists"}