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

During installation, you'll be prompted to automatically install NRD as a system service. This makes NRD start automatically when your system boots.

Note:

  • On Linux, you may need to run: sudo pip install nrd
  • On Windows, run the command in an Administrator PowerShell/CMD window
  • On macOS, no special privileges needed for the prompt

Usage

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

Autostart on System Boot

NRD can be configured to automatically start when your system boots. This ensures your development servers are always running in the background.

Quick Start

After installing NRD via pip, simply run:

macOS:

nrd-service-install

Linux:

sudo nrd-service-install

Windows (Run PowerShell/CMD as Administrator):

nrd-service-install

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.8.tar.gz (14.1 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.8-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nrd-0.0.8.tar.gz
  • Upload date:
  • Size: 14.1 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.8.tar.gz
Algorithm Hash digest
SHA256 90350316ff46caab5a9d1bfd5b413b443e876bbb1832183508149bc5fd8dc828
MD5 dc8c065a19a92a6654f315d34df9148b
BLAKE2b-256 b6ccdb885a1ee6d5c1bf934bee3fce9d21ba0bbb494e161d86a85ffcc8235a73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nrd-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9144a4b38de8729ece93815920681669d164427e8b376de733e5065791591169
MD5 29744f7ef17a5fa88a65e6aa34285e3a
BLAKE2b-256 ae94af58e27bf6b4cde47c0a5b3c89e117819e6397bc619bbe357b02fcf37703

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