netpromotion / deployer
Takes repository and uploads non-ignored files to remote server
v1.0.6
2018-01-09 21:55 UTC
Requires
- php: >=5.4
- dg/ftp-deployment: ^2.7
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is not auto-updated.
Last update: 2024-11-21 07:26:42 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.json
file - Configure it similar way as
dg/ftp-deployment
, differences:log
is object with two optional keys:config
is path of dump of final configuration,output
is path of output logignore
is array of additional ignored files (overrides.gitignore
)
- Private properties (f.e.
remote
) extract intodeploy.local.json
file - 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" }