Commit 93c47336 authored by Aral Balkan's avatar Aral Balkan

Update docs: --logs

parent a11e6893
......@@ -16,7 +16,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## Added
- --live flag to run as daemon and handle crashes/restarts via integrated pm2 process manager.
- `--live` flag to run as daemon and handle crashes/restarts via integrated pm2 process manager.
- `--monitor` flag to monitor an already-running live server daemon process.
- `--logs` flag to display and tail the web server logs for an already-running live server daemon process.
## Changed
......
......@@ -48,10 +48,17 @@ Start serving the _site_ directory at your _hostname_ as a daemon that will run
$ web-server --live site
```
The `--live` option uses the [pm2](https://pm2.io/runtime/) process manager and sets up your server to (re)start automatically when you server (re)starts (requires `sudo`) and/or crashes, etc.
The `--live` option sets up your server to (re)start automatically when you server (re)starts (requires `sudo`) and/or crashes, etc.
For example, if you run the command on a connected server that has the ar.al domain pointing to it and `ar.al` set in _/etc/hostname_ (on Unix/Linux/macOS), you will be able to access the site at https://ar.al. The first time you hit it, it will take a little longer to load as your Let’s Encrypt certificates are being automatically provisioned by ACME TLS.
Once you have started your live web server daemon, you can use these commands to monitor it, etc.:
* `--monitor`: monitor an already-running live server daemon process.
* `--logs`: display and tail the web server logs.
The live server uses the [pm2](https://pm2.io/runtime/) process manager internally and you can make use of all pm2 functionality via the pm2 command if you need to.
## Build and test from source
```shell
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment