Server Management

To show the servers API curl will be used to interact with the database. The examples assume the server to be running on the some host and listening on the port 1338.

Starting the server

The server startup script is located in the bin/ directory of your Stairtower installation.

cd /path/to/stairtower/root/
bin/server

Shutdown

To give the server time to persist all changes and correctly shut down send him a _shutdown request

curl -X POST http://127.0.0.1:1338/_shutdown

Restart

The _restart request allows the restart of the event loop only

curl -X POST http://127.0.0.1:1338/_restart

Get a welcome message

Print a short welcome message

curl http://127.0.0.1:1338/

Read statistics

curl http://127.0.0.1:1338/_stats