nova 2020-05-30 16:23:41 +00:00
parent cabffe9ecd
commit d8881d430c

@ -1,6 +1,6 @@
## Installation # Installation
To begin with, you will need the compiled jar file. You can either download it from the [release](https://git.arcusiridis.com/nova/Chatto/releases) releases section of this repo, or by building it from source. To begin with, you will need the compiled jar file. You can either download it from the [releases](https://git.arcusiridis.com/nova/Chatto/releases) section of this repo, or by building it from source.
On linux systems, place the jar file in a directory such as /var/lib/chatto or /var/www/chatto. On linux systems, place the jar file in a directory such as /var/lib/chatto or /var/www/chatto.
@ -76,15 +76,20 @@ server {
``` ```
Place the file in ```bash /etc/nginx/sites-available/``` (depending on your linux distro this may differ). Place the file in ```bash /etc/nginx/sites-available/``` (depending on your linux distro this may differ).
Now make a symlink - ```bash sudo ln -s /etc/nginx/sites-available/chatto /nginx/sites-enabled``` Now make a symlink -
verify configration - ```bash sudo nginx -t```
and restart nginx - ```bash sudo systemctl restart nginx``` ```bash sudo ln -s /etc/nginx/sites-available/chatto /nginx/sites-enabled```
verify configration -
```bash sudo nginx -t```
and restart nginx -
```bash sudo systemctl restart nginx```
Now create a linux user - Now create a linux user -
```bash sudo useradd -r -s /bin/false``` ```bash sudo useradd -r -s /bin/false```
Next create a systemd script making use of the created user- Next create a systemd script making use of the created user-
```systemd ```
[Unit] [Unit]
Description=System Daemon for Chatto Description=System Daemon for Chatto
@ -107,4 +112,4 @@ Reload systemd daemon - ```bash sudo systemctl daemon-reload```
Then start the service - ```bash sudo systemctl start chatto``` Then start the service - ```bash sudo systemctl start chatto```
If everything went well then the app should start. If everything went well then the app should start.
Check with ```bash sudo systemctl status chatto``` and if it fails to start do ```sudo journalctl -u chatto``` Check with ```bash sudo systemctl status chatto``` and if it fails to start do ```sudo journalctl -u chatto``` to check the cause of the failure.