diff --git a/Installation.md b/Installation.md index 2fbd28c..cfcceb6 100644 --- a/Installation.md +++ b/Installation.md @@ -1,15 +1,15 @@ -## 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. Place the below application.properties config file in the same directory - ```properties -chatto.datasource.username = chatto_user -chatto.datasource.password = test -chatto.datasource.database-name = chatto_db +chatto.datasource.username=chatto_user +chatto.datasource.password=test +chatto.datasource.database-name=chatto_db chatto.datasource.url=localhost chatto.datasource.port=3306 chatto.datasource.params=useSSL=false @@ -76,15 +76,20 @@ server { ``` 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``` -verify configration - ```bash sudo nginx -t``` -and restart nginx - ```bash sudo systemctl restart nginx``` +Now make a symlink - + +```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 - ```bash sudo useradd -r -s /bin/false``` Next create a systemd script making use of the created user- -```systemd +``` [Unit] 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``` 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.