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.1

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.1
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)

Table of built distributions (wheels) for sofia-deploy 1.0.1
File Interpreter ABI Platform Actions
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.

Release history Release notifications | RSS feed

This release

1.0.1 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