It takes repository and uploads non-ignored files to remote server
- 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 logignoreis array of additional ignored files (overrides.gitignore)
- Private properties (f.e.
remote) extract intodeploy.local.jsonfile - Run
./vendor/bin/deploy
{
"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"
]
}{
"test": false,
"remote": "ftp://user:password@server.tld/directory"
}