nova 2020-05-31 05:27:37 +00:00
parent c0966e74a0
commit 54c84ea1aa

@ -6,7 +6,7 @@ On linux systems, place the jar file in a directory such as /var/lib/chatto or /
Place the below application.properties config file in the same directory - Place the below application.properties config file in the same directory -
```properties ``` properties
chatto.datasource.username=chatto_user chatto.datasource.username=chatto_user
chatto.datasource.password=test chatto.datasource.password=test
chatto.datasource.database-name=chatto_db chatto.datasource.database-name=chatto_db
@ -74,7 +74,6 @@ server {
Place the file in Place the file in
```bash ```bash
/etc/nginx/sites-available/ /etc/nginx/sites-available/
``` ```
(depending on your linux distro this may differ). (depending on your linux distro this may differ).
@ -82,7 +81,6 @@ Now make a symlink -
```bash ```bash
sudo ln -s /etc/nginx/sites-available/chatto /nginx/sites-enabled sudo ln -s /etc/nginx/sites-available/chatto /nginx/sites-enabled
``` ```
verify configration - verify configration -
@ -96,12 +94,12 @@ sudo systemctl restart nginx
Now create a linux user - Now create a linux user -
```bash ```bash
sudo useradd -r -s /bin/false sudo useradd -r -s /bin/false chatto
``` ```
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
@ -123,7 +121,6 @@ Name the file chatto.service and place it in
``` ```
/etc/systemd/systemd /etc/systemd/systemd
``` ```
Reload systemd daemon - Reload systemd daemon -
@ -147,5 +144,4 @@ and if it fails to start do
``` ```
sudo journalctl -u chatto sudo journalctl -u chatto
``` ```
to check the cause of the failure. to check the cause of the failure.
If everything went well then the app should start.