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
Metadata
Release files for py-deployer 1.7.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py-deployer-1.7.5.tar.gz | 19.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_deployer-1.7.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.7 kB
Release files / py-deployer-1.7.5.tar.gz
| Download URL | py-deployer-1.7.5.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b33133a41d96ab4c133a7421907f50eb73b7dbc188b4fd648ce33d5a3a47dd5
|
|
BLAKE2b-256 checksum How to use checksums |
eaa39ff91aba043b640f7bfdcdd5b26fd239488c15561cd386ab5a42f449ab7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|
Release files / py_deployer-1.7.5-py3-none-any.whl
| Download URL | py_deployer-1.7.5-py3-none-any.whl |
|---|---|
| Size | 34.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b608314ee68873a76450497ca6d636784893b72e2c430ff9297f3de35f72dc55
|
|
BLAKE2b-256 checksum How to use checksums |
5fbc5ed032939f6991cde237d0bf02495758e06e73e660dddad97849a5adfdb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|