Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appherder

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appherder

CLI to start & watch a set of local app servers

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

appherder

CLI to start & watch a bunch of local app servers:

  • Scans for open ports and passes them to the app servers through the PORT environment variable
  • Will restart a server if the process dies
  • Opens a HTTP endpoint which returns server to port mappings for service discovery
  • Each app's output goes straight to stdout/stderr, therefore each app is responsible for identifying itself in its loglines

Usage

The directory where you run appherder must have a configuration file called appherd.json:

{
  "port": 7000,
  "apps": {
    "server1": {
      "command": "node",
      "args": ["server1/index.js"]
    },
    "server2": {
      "command": "node",
      "args": ["server2/index.js"]
    }
  }
}

Once that's set up, run appherder.

Open http://localhost:7000. Given port 7001 and 7002 are free, you should get the following JSON response with the above configuration:

{
  "server1": 7001,
  "server2": 7002
}

FAQs

Package last updated on 14 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc