mirror of
https://github.com/Kizuren/statusPage.git
synced 2025-12-21 13:06:08 +01:00
Added instructions to serve the status page
This commit is contained in:
parent
91851ce3e9
commit
eaef31dc1e
1 changed files with 21 additions and 0 deletions
21
README.md
21
README.md
|
|
@ -91,3 +91,24 @@ Save current pm2 processes list
|
|||
```shell
|
||||
pm2 save
|
||||
```
|
||||
|
||||
### Serving the status page
|
||||
The `watcher.js` script only takes care of running the status checks and updates the `status.json` file in the `static/` folder. If you want to view the final result, you simply need to serve the files in the `static/` folder. You can use Nginx with a config like:
|
||||
```nginx
|
||||
# Pulse
|
||||
server {
|
||||
root /var/www/apulse/static/;
|
||||
index index.html;
|
||||
server_name apulse.ybouane.com;
|
||||
location /favicon.ico {
|
||||
return 301 "/favicon.png";
|
||||
}
|
||||
listen 80;
|
||||
}
|
||||
```
|
||||
|
||||
Or use any other tool to serve those files like the npm http-server package:
|
||||
```shell
|
||||
cd static
|
||||
npx http-server -o ./
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue