netpromotion/deployer

Takes repository and uploads non-ignored files to remote server

v1.0.6 2018-01-09 21:55 UTC

This package is not auto-updated.

Last update: 2024-04-25 04:36:32 UTC


README

It takes repository and uploads non-ignored files to remote server

How to use it

  1. Go to your project directory
  2. Run composer require --dev netpromotion/deployer
  3. Create deploy.json file
  4. 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 log
    • ignore is array of additional ignored files (overrides .gitignore)
  5. Private properties (f.e. remote) extract into deploy.local.json file
  6. 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"
}