Tools to deploy python web application. The build process is run in container using podman so make sure you have podman properly setup on the build machine.
Install
pipx install webship
Usage
Create directory to hold the deploy project:-
mkdir -p myapp_deploy
Create webship.ini to hold configuration about the deploy:-
[fetch]
repo = git@github.com:xoxzoeu/myapp.git
clone_args = recursive
[deploy]
path = /app/myapp
hosts =
127.0.0.1
127.0.0.2
To build the app:-
webship fetch
webship build myapp 1.0.1 --docker_image=myapp
That will generate the release tarball in build/myapp-1.0.1.tar.gz. Before
deploying the release tarball, we can test it first to make sure everything
is working as expected:-
webship run build/myapp-1.0.1.tar.gz ".venv/bin/myapp manage runserver 0.0.0.0:8000" --env-file=/home/kamal/python/myapp_deploy/env
To deploy:-
webship deploy build/myapp-1.0.1.tar.gz
Deploy directory structure is like below:-
deploy_path (default to /app/<project_name>)
releases/
current --> releases/<project_name>-0.0.1
Active release will be /app/<project_name>/current which is a symlink to active version. This
structure will allow multiple apps to be deployed on the same server.
Metadata
Release files for webship 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| webship-0.1.2.tar.gz | 3.5 kB | Without provenance | Details for webship-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| webship-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for webship-0.1.2-py3-none-any.whl |
Total release size: 7.7 kB
Release files / webship-0.1.2.tar.gz
| Download URL | webship-0.1.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c3da70f92f2749fced4b934ded34cf2bedb64f3dc0fd19cf61d5914bb7153c1
|
|
BLAKE2b-256 checksum How to use checksums |
7b7828eaf43ac385ce34ceb9b5eb13a7b3e5157517cd840ca3cf91c3ea34ea33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.5 Linux/5.4.0-1018-aws
|
Release files / webship-0.1.2-py3-none-any.whl
| Download URL | webship-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d31601f11af9e4bc34fa2102376c5933bd6cca9b259927572233303dec90087a
|
|
BLAKE2b-256 checksum How to use checksums |
268753f072badc843453f46c6eaf71fe7419194dfad469b976a119da6294fb75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.5 Linux/5.4.0-1018-aws
|
Security for webship 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.