1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jellyseerr_ynh.git synced 2024-09-03 19:26:18 +02:00
This commit is contained in:
Thomas 2023-05-08 21:04:35 +02:00 committed by GitHub
parent bbf289d85e
commit 86b9ff5869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 7 deletions

View file

@ -9,7 +9,7 @@ User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/jellyseerr.conf
Environment="__YNH_NODE_LOAD_PATH__"
Environment=NODE_ENV=production
ExecStart=__YNH_NODE__ dist/index.js
StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View file

@ -58,9 +58,5 @@ ram.runtime = "50M"
[resources.apt]
packages = "mariadb-server"
extras.yarn.repo = "deb https://dl.yarnpkg.com/debian/ stable main"
extras.yarn.key = "https://dl.yarnpkg.com/debian/pubkey.gpg"
extras.yarn.packages = "yarn"
[resources.database]
type = "mysql"

View file

@ -12,7 +12,7 @@ source /usr/share/yunohost/helpers
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Installing dependencies..." --weight=10
ynh_script_progression --message="Installing dependencies..." --weight=5
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
@ -43,9 +43,11 @@ ynh_add_nginx_config
#=================================================
# BUILD APP
#=================================================
ynh_script_progression --message="Building app..." --weight=10
ynh_script_progression --message="Building app..." --weight=30
pushd $install_dir
# Install Yarn
ynh_npm install --global yarn
ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install --production --pure-lockfile --network-timeout=30000
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn run build