functional ansible role, not functional process restarting

This commit is contained in:
sneakers-the-rat 2023-08-08 17:16:49 -07:00
parent 0e8b30d081
commit 895ddfbfa5
4 changed files with 6 additions and 3 deletions

View file

@ -39,7 +39,7 @@
copy: copy:
remote_src: true remote_src: true
src: "{{ chatbridge_user_home }}/chatbridge/client/dist/" src: "{{ chatbridge_user_home }}/chatbridge/client/dist/"
dest: "/var/www/html{{ chatbridge_webroot }}" dest: "{{ chatbridge_public_dir }}"

View file

@ -8,7 +8,7 @@ server {
} }
location {{ chatbridge_webroot }}/ { location {{ chatbridge_webroot }}/ {
root {{ chatbridge_user_home }}/public; alias {{ chatbridge_user_home }}/public;
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
} }

View file

@ -15,7 +15,7 @@ server {
{% else %} {% else %}
location {{ chatbridge_webroot }} { location {{ chatbridge_webroot }} {
root {{ chatbridge_public_dir }}; alias {{ chatbridge_public_dir }};
index index.html; index index.html;
try_files $uri $uri/ $uri/index.html =404; try_files $uri $uri/ $uri/index.html =404;
} }

View file

@ -93,6 +93,9 @@ class MatterbridgeManager {
if (err) { if (err) {
logger.error('error restarting matterbridge process', err) logger.error('error restarting matterbridge process', err)
} }
if (proc) {
logger.info('process restart info %s', proc)
}
} }
) )
} }