Socket
Socket
Sign inDemoInstall

forever-web

Package Overview
Dependencies
13
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    forever-web

An elegant web interface for Nodejitsi/forever.


Version published
Weekly downloads
2
decreased by-90.48%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

forever-web NPM version

An elegant web interface for Nodejitsi/forever.

Guide

# Installation ``` $ npm install -g forever-web ``` # CLI ``` Usage: fw [cmd] [options]

Commands:

start [options] [port]  Launch the web server, port default by 8088
config                  show all configs
set <key> <value>       set config by key-value pairs
rm <key>                remove config by key

Options:

-h, --help     output usage information
-v, --version  output the version number

Basic Examples:

Start the web server, by default port (8088):
$ fw start

Start the web server, by specific port (8090):
$ fw start 8090

<a name="cli_web" />
## Run Web Interface
```bash
  Usage: start [options] [port]

  Options:

    -h, --help  output usage information
    --no-debug  hide stdout/stderr information
## Configs ```javascript { "refresh": 3000 "manipulation": true "forever": "~/.forever" } ```
  • refresh The heartbeat duration of monitor (backend), 5000 by default.
  • manupulation A value indicates whether the client has permission to restart/stop processes, true by default.
  • forever Root directory of nodejitsu/forever, ~/.forever by default.
### Set Config Usage ```bash $ fw set ```

Example

$ fw set refresh 2000

Above command will set refresh to two second.

### Remove Config Usage ```bash $ fw rm ```

Example

$ fw rm refresh

Above command will remove refresh config and it will be set to 5000 by default.

# Feature - All the heartbeats (no matter **monitor** or **tail (logs)**) are automatic destroyed. - The `forever` processes are watched by a FSWatcher ([chokidar](https://www.npmjs.org/package/chokidar)), but not manually polling. - Communicated with `forever` through [NSSocket](https://www.npmjs.org/package/nssocket) directly, but not `forever` programmatic API. - Socket.io between client and server. - Monitor CPU and Memory usage of server in a real-time. - Monitor `forever` processes in a real-time. - Supports: process memory monitor, forever restart/stop. - Supports [ANSI color codes](#tail_logs). # Cautions - Web Interface is wrote by CSS3 && HTML5, so view it with the latest version of the browser (WebGL, Animation, WebSocket supports), e.g. Chrome, Safari and Firefox. - I've never test it on Internet Explorer / Windows. - Nodejitsu/forever has problem with `STOPPED` process, so if there is a `STOPPED` process, however, it can create instability, you'd better refresh the page manually (F5 / COMMAND + R), sometimes you need to restart `forever-web`. # UI/UX - Amazing and smooth animations. - High performance. Backend (without `--no-debug` option):

shot

Home

shot

Empty List

shot

Processes

shot

Describe Complete Information

shot

Tail Logs

shot

# TODO - [x] Implement restart/stop. - [x] Do not count uptime of STOPPED processes. - [x] Memory usage of each process. - [ ] Test on Windows (need environment). - [ ] Need feedback/test.

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Keywords

FAQs

Last updated on 16 Dec 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc