diff --git a/conf/systemd.service b/conf/systemd.service index 6c9389d..c4c76eb 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -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 diff --git a/doc/screenshots/example.jpg b/doc/screenshots/example.jpg deleted file mode 100644 index a1efa1a..0000000 Binary files a/doc/screenshots/example.jpg and /dev/null differ diff --git a/doc/screenshots/jellyseerr.png b/doc/screenshots/jellyseerr.png new file mode 100644 index 0000000..ffde693 Binary files /dev/null and b/doc/screenshots/jellyseerr.png differ diff --git a/manifest.toml b/manifest.toml index c4b904f..2c55abe 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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" diff --git a/scripts/install b/scripts/install index 436d5a5..96d1e83 100755 --- a/scripts/install +++ b/scripts/install @@ -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