Metadata-Version: 2.4
Name: SimpleDeployer
Version: 1.2.1
Summary: Dead simple deployment system
Home-page: https://github.com/mikedombo/simpledeployer
Author: Michael Dombrowski
Author-email: michael@mikedombrowski.com
License: BSD-3-Clause
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: gitpython>=3.2.1
Requires-Dist: pyyaml>=5.1
Requires-Dist: click>=7.0
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# SimpleDeployer

Edit `~/.deployer/deployer.yaml` this is your config file.

```yaml
definitions:
    - outDir: /var/www/graphPlayground
      repository: https://github.com/MikeDombo/graphPlayground.git
      sourceDir: .
      ignore:
          - .*/* # Ignore all directories starting with ".". Ex. .git and .vscode
      noOverwrite:
          - .gitlab-ci.yml # If you have a local config file, for example and don't want it overwritten every time you deploy, add it here
      postInstall: # Commands to run after the copy happens. Use this to update node_modules and similar.
          - npm ci
          - npm run build
```

Additional options:

- branch: The branch to clone from Git
- deleteRemoved: Delete files from `outDir` which were deployed previously but have since been removed from the
  repository. Default is `true`.

## Removed files

SimpleDeployer keeps a record of the files it deployed for each definition in `~/.deployer/state/`. On the next deploy,
any recorded file which no longer exists in the repository is deleted from `outDir`, along with directories that are
left empty. Only files that SimpleDeployer deployed itself are ever deleted, so anything else in `outDir` (such as
`node_modules` or build output from `postInstall`, or files you created) is left alone. Files matching `ignore` or
`noOverwrite` are never deleted.

The record is created on the first deploy, so files removed from the repository before then are not cleaned up.
