Skip to main content

run vite dev server in background

Project description

nrd

Run npm run dev in background for all your Laravel Herd sites.

Installation

pip install nrd

Important: After installing, set up the autostart service:

macOS:

nrd-service-install

Linux:

sudo nrd-service-install

Windows (Run PowerShell as Administrator):

nrd-service-install

This installs NRD as a system service that automatically starts when your computer boots, keeping your Vite dev servers running in the background.

Usage

If you have installed the background service you don't have to do anything.

Otherwise simply run the nrd command to start all Vite dev servers for your secured Herd sites:

nrd

Or run it as a module:

python -m nrd.nrd

Uninstall Service

macOS:

nrd-service-uninstall

Linux:

sudo nrd-service-uninstall

Windows (Run as Administrator):

nrd-service-uninstall

For detailed instructions, troubleshooting, and management commands, see the Service Installation Guide.

Features

  • Automatically detects all secured Laravel Herd sites
  • Runs Vite dev servers in the background
  • Cross-platform service support (macOS, Linux, Windows)
  • Auto-restart on failure
  • Easy installation and management scripts

Requirements

  • Python 3.8 or higher
  • Laravel Herd installed and configured
  • npm and node.js
  • Sites with Vite configured

How It Works

NRD uses the herd parked --json command to discover all your secured Herd sites, then starts npm run dev for each site in the background. When configured as a service, it automatically starts on system boot and keeps your dev servers running.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nrd-0.0.9.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nrd-0.0.9-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file nrd-0.0.9.tar.gz.

File metadata

  • Download URL: nrd-0.0.9.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for nrd-0.0.9.tar.gz
Algorithm Hash digest
SHA256 c39996dfc20f41e107316b595d626ae6539332f6ca5586499b1208233bbffeae
MD5 5756702a3b3b550e800939a860d3ce1d
BLAKE2b-256 9fac5463914b3d75166e7f9aa5f7ee21f90694df313b0ec9fdf4415ffd9a9f10

See more details on using hashes here.

File details

Details for the file nrd-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: nrd-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for nrd-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8e9da7054c7f944a1329a345a0b9902a4a471f50d94237919907787f883b995a
MD5 7dc8d385a5bdca718e3e7650333d78a4
BLAKE2b-256 4c965bb027ec3fec9f9f943711d46bbf811fc3a161d70a6fce84e391b1fe1bb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page