Sofia
Interactive Linux deployer for Angular, React, Vite and Node.js apps.
SSH into your server, run Sofia, answer a few questions — it installs Node, nginx, Let’s Encrypt, systemd, builds your app and goes live.
PyPI name is
sofia-deploy(sofiawas already taken).
CLI and Python import remainsofia.
Install
pip install sofia-deploy
# or with root for system-wide CLI:
sudo pip install sofia-deploy
Usage (on the target server)
cd /path/to/your/app
sudo sofia
Sofia will:
- Detect Angular / React / Vite / Node from
package.json - Ask domain, SSL email, port, build/start commands
- Install dependencies (Node, nginx, certbot)
- Build the app
- Configure systemd + nginx reverse proxy (or static hosting)
- Issue a Let’s Encrypt certificate
Non-interactive
sudo sofia --non-interactive --config sofia.env
Python API
from sofia import DeployConfig, deploy
cfg = DeployConfig(
project_root="/var/www/myapp",
app_name="myapp",
domain="example.com",
email="admin@example.com",
framework="vite", # angular | react | vite | node
serve_mode="static", # static | node
build_command="npm ci && npm run build",
static_root="dist",
enable_ssl=True,
)
deploy(cfg)
Supported project types
| Framework | Typical build | Serve mode |
|---|---|---|
| Angular | ng build |
node (custom server) or static |
| React (CRA) | npm run build |
static → build/ |
| Vite / Vite+React | npm run build |
static → dist/ |
| Node API / full stack | custom | node → npm start / node server.js |
Requirements
- Linux (Amazon Linux, Ubuntu, Debian, RHEL/Rocky)
- Root (
sudo) - DNS A/AAAA pointing to the server
- Ports 80 and 443 open
Publish (maintainers)
python -m pip install build twine
python -m build
twine upload dist/*
Metadata
Release files for sofia-deploy 1.0.1
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 |
|---|---|---|---|---|
| sofia_deploy-1.0.1.tar.gz | 19.0 kB | Without provenance | Details for sofia_deploy-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sofia_deploy-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for sofia_deploy-1.0.1-py3-none-any.whl |
Total release size: 43.7 kB
Release files / sofia_deploy-1.0.1.tar.gz
| Download URL | sofia_deploy-1.0.1.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
376d4185430dbed37dc7ce956f05f5fc79b3840a2070e12ea8b2bdfee93cde16
|
|
BLAKE2b-256 checksum How to use checksums |
42991b7b65a7882d426a202ccaa9ba534eb362cc7a84ad7299ca1c9c6937ef00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / sofia_deploy-1.0.1-py3-none-any.whl
| Download URL | sofia_deploy-1.0.1-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3a588d8f2bc89aac6240c993a9b38cbd27a0701e9a27a62670f2446636ecb25
|
|
BLAKE2b-256 checksum How to use checksums |
fabee8729a89d6eab71bfd9080dc41f1886fa04ab0ec0646370ccf8cdac58a51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for sofia-deploy 1.0.1
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.