netpromotion / deployer
Takes repository and uploads non-ignored files to remote server
Installs: 349
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/netpromotion/deployer
Requires
- php: >=5.4
- dg/ftp-deployment: ^2.7
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is not auto-updated.
Last update: 2025-10-23 11:50:35 UTC
README
It takes repository and uploads non-ignored files to remote server
How to use it
- Go to your project directory
- Run composer require --dev netpromotion/deployer
- Create deploy.jsonfile
- Configure it similar way as dg/ftp-deployment, differences:- logis object with two optional keys:- configis path of dump of final configuration,- outputis path of output log
- ignoreis array of additional ignored files (overrides- .gitignore)
 
- Private properties (f.e. remote) extract intodeploy.local.jsonfile
- Run ./vendor/bin/deploy
Examples
deploy.json
{
  "test": true,
  "log": {
    "config": "/deploy.config.log"
  },
  "ignore": [
    "/tests/",
    "!/vendor/"
  ],
  "before": [
    "local: git tag -f deployed",
    "local: git push -f origin deployed",
    "local: composer install"
  ],
  "after": [
    "http://server.tld/deployed.php"
  ]
}
deploy.local.json
{
  "test": false,
  "remote": "ftp://user:password@server.tld/directory"
}