Skip to main content

Lightweight package to execute zero-downtime deployment on Linux servers

Project description

Py Deployer

Py Deployer is a lightweight package to execute zero-downtime deployment on Linux servers.

pydeploy -s prod

✨ Features

  • Cross-technology deployments
  • Simple configuration
  • Zero downtime deployments
  • Multiple environment management
  • Release version management
  • Use SSH protocol

⚠ This package does not currently support after-deployment scripts

1️⃣ Installation

sudo pip3 install py-deployer

2️⃣ Configuration

Create the file deploy/config.yaml inside your project as following:

# Example of file: ./deploy/config.yaml

deploy:
  # Shared files and folders (between releases)
  shared: [.env]

  # All available servers (SSH configuration)
  servers:
    dev:
      hostname: '10.56.12.0'
      port: 22
      user: 'dev_username'
      password: ~ # Ignore that if you use SSH keys
      deploy_path: '/server/application/path'
      stage: 'develop'
      branch: 'dev'
      identity_file: ~  # Ignore that if it stay in the default folder (~/.ssh)
      repository: ~     # Ignore that if you run pydeploy from a git project directory
      max_releases: 3
    # ...
    prod:
      hostname: '10.56.11.0'
      port: 22
      user: 'prod_username'
      password: ~ # Ignore that if you use SSH keys
      deploy_path: '/server/application/path'
      stage: 'production'
      branch: 'master'
      identity_file: ~  # Ignore that if it stay in the default folder (~/.ssh)
      repository: ~     # Ignore that if you run pydeploy from a git project directory
      max_releases: 3

3️⃣ Deployment

Deploy your application by running:

pydeploy -s <dev|stag|prod|...>

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-deployer-1.7.5.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

py_deployer-1.7.5-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file py-deployer-1.7.5.tar.gz.

File metadata

  • Download URL: py-deployer-1.7.5.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for py-deployer-1.7.5.tar.gz
Algorithm Hash digest
SHA256 9b33133a41d96ab4c133a7421907f50eb73b7dbc188b4fd648ce33d5a3a47dd5
MD5 d746e2c2848d7c242e8546147c48e45e
BLAKE2b-256 eaa39ff91aba043b640f7bfdcdd5b26fd239488c15561cd386ab5a42f449ab7a

See more details on using hashes here.

File details

Details for the file py_deployer-1.7.5-py3-none-any.whl.

File metadata

  • Download URL: py_deployer-1.7.5-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for py_deployer-1.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b608314ee68873a76450497ca6d636784893b72e2c430ff9297f3de35f72dc55
MD5 4addba6aadcfc06e68be76ef1ac1b2be
BLAKE2b-256 5fbc5ed032939f6991cde237d0bf02495758e06e73e660dddad97849a5adfdb4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page