From 1e375b1631a67b23c6212ba4741970be6a36d652 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 27 Jul 2021 20:35:59 +0200 Subject: [PATCH] Fix --- conf/.env | 5 +++++ conf/systemd.service | 2 +- scripts/install | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 conf/.env diff --git a/conf/.env b/conf/.env new file mode 100644 index 0000000..edc1b98 --- /dev/null +++ b/conf/.env @@ -0,0 +1,5 @@ +# This setting allows to fix the homeserver. +# If you set this setting, the user will not be able to select +# the server and have to use synapse-admin with this server. + +REACT_APP_SERVER=https://__SYNAPSE_DOMAIN__ \ No newline at end of file diff --git a/conf/systemd.service b/conf/systemd.service index 5e99098..679d91d 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -9,7 +9,7 @@ Group=__APP__ WorkingDirectory=__FINALPATH__ Environment="PATH=__ENV_PATH__" Environment="NODE_ENV=production" -ExecStart=/usr/bin/yarn build -p __PORT__ +ExecStart=/usr/bin/yarn start -p __PORT__ Restart=always [Install] diff --git a/scripts/install b/scripts/install index b0b94aa..5584a79 100644 --- a/scripts/install +++ b/scripts/install @@ -23,7 +23,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC - +synapse_domain=$(yunohost app setting synapse domain) app=$YNH_APP_INSTANCE_NAME #=================================================