mirror of
https://github.com/YunoHost-Apps/umami_ynh.git
synced 2024-10-01 13:34:50 +02:00
Merge pull request #30 from orhtej2/disable_telemetry
Disable umami and next.js telemetry.
This commit is contained in:
commit
37b1a9083c
4 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
DATABASE_TYPE=postgresql
|
||||
DATABASE_URL=postgresql://__DB_USER__:__DB_PWD__@127.0.0.1:5432/__DB_NAME__
|
||||
DISABLE_TELEMETRY=0
|
||||
DISABLE_TELEMETRY=1
|
||||
PORT=__PORT__
|
||||
DEFAULT_LOCALE="__LANGUAGE__"
|
||||
|
|
|
@ -7,8 +7,9 @@ Type=simple
|
|||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__/
|
||||
#Environment=NODE_ENV=production
|
||||
Environment=NODE_ENV=production
|
||||
Environment="__YNH_NODE_LOAD_PATH__"
|
||||
Environment=NEXT_TELEMETRY_DISABLED=1
|
||||
ExecStart=__YNH_NPM__ run start-env
|
||||
|
||||
# Sandboxing options to harden security
|
||||
|
|
|
@ -59,7 +59,7 @@ ynh_script_progression --message="Configuring the app..." --weight=15
|
|||
pushd $install_dir
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn build
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NEXT_TELEMETRY_DISABLED=1 yarn build
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -91,7 +91,7 @@ ynh_script_progression --message="Configuring the app..." --weight=15
|
|||
pushd $install_dir
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn build
|
||||
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NEXT_TELEMETRY_DISABLED=1 yarn build
|
||||
#ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH npx @umami/migrate-v1-v2@latest
|
||||
popd
|
||||
|
||||
|
|
Loading…
Reference in a new issue