Skip to main content

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 (sofia was already taken).
CLI and Python import remain sofia.

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:

  1. Detect Angular / React / Vite / Node from package.json
  2. Ask domain, SSL email, port, build/start commands
  3. Install dependencies (Node, nginx, certbot)
  4. Build the app
  5. Configure systemd + nginx reverse proxy (or static hosting)
  6. 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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sofia-deploy 1.0.0
File Size Uploaded Provenance Actions
sofia_deploy-1.0.0.tar.gz 17.9 kB Without provenance Details for sofia_deploy-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sofia-deploy 1.0.0
File Interpreter ABI Platform Actions
sofia_deploy-1.0.0-py3-none-any.whl Python 3 none any Details for sofia_deploy-1.0.0-py3-none-any.whl

Total release size: 41.5 kB

Release files / sofia_deploy-1.0.0.tar.gz

Download URL sofia_deploy-1.0.0.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a61aadeeec0456a4e0f68e86c33f9765d36a0cc5e7ea62d7d3d44c04357188ef
BLAKE2b-256 checksum
How to use checksums
e1e020f0c5d71a2c91d0f2f408e9a2356c9a32d4fff39da4063fe5751fc854c3
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.0-py3-none-any.whl

Download URL sofia_deploy-1.0.0-py3-none-any.whl
Size 23.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ebaf290bb37afde441a5563f69489f9146e2d78aad4a9e92cf24b0ddd85200c
BLAKE2b-256 checksum
How to use checksums
3794e520f8bd22a689ef251413593c80c6c0802ae4bf99e2960a8124a954e58a
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.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page