#server #web-server #http #check #command #url #running

app server-runner

Runs servers, checks for HTTP 200 and runs a command when all servers are up and running

7 releases (stable)

1.4.0 Apr 7, 2024
1.3.0 Jun 16, 2023
0.0.3 Jun 6, 2023
0.0.2 May 29, 2023

#186 in HTTP server

Download history 1/week @ 2024-02-23 1/week @ 2024-03-01 73/week @ 2024-03-08 13/week @ 2024-03-15 4/week @ 2024-03-29 106/week @ 2024-04-05 10/week @ 2024-04-12

120 downloads per month

Custom license

19KB
201 lines

Server Runner

Tests

Server Runner is a little Rust programm to run multiple web servers, check until all servers are ready via a URL that returns HTTP 200 und runs a command when all servers are ready.

Installation

Currently Server Runner is only available via Cargo. It will be also available via NPM in the near future, since NPM is available on almost any OS out there and it's much easier to publish than to many other package managers.

Installation via Cargo

cargo install server-runner

Configuration File

Example

servers:
    - name: "My web server"
      url: "http://localhost:8080"
      command: "node webserver.js"
command: "node cypress"
server-runner -c config.yaml

Default name of the config file is servers.yaml in your current working directory.

Server Runner will attempt to check a server's status up to ten times with one second between each attempt. If a server is not responding with HTTP 200 after that, Server Runner will shutdown all servers and exit.

Dependencies

~8–23MB
~391K SLoC