Py Deployer is a 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, .env.local]
# 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
To deploy your application, just run:
pydeploy -s <dev|stag|prod|...>
Project details
Release history Release notifications | RSS feed
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.5.3.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for py_deployer-1.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02457ce77adb649edd0cc3194b44bdcf35dd9b552af6ede83c5dbae42d28e59d |
|
MD5 | ca1334a53154b4d633d98ce8d4c147e9 |
|
BLAKE2b-256 | e44cc9f8f2e927b32f2faf59dd52abd5bc7734b1ff2665c86586c64e13db275b |