diff --git a/scripts/install b/scripts/install index e44c98b..db7672d 100755 --- a/scripts/install +++ b/scripts/install @@ -69,7 +69,6 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies # Install Nodejs ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version -ynh_use_nodejs # Install Yarn ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" @@ -130,6 +129,7 @@ chown $app:$app "$final_path/.env" ynh_script_progression --message="Configuring the app..." --weight=15 pushd $final_path + ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install #--production 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 yarn update-db diff --git a/scripts/upgrade b/scripts/upgrade index ce512ab..afdb77b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -99,7 +99,6 @@ ynh_install_app_dependencies $pkg_dependencies # Install Nodejs ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version -ynh_use_nodejs # Install Yarn ynh_install_extra_app_dependencies --repo="deb https://dl.yarnpkg.com/debian/ stable main" --package="yarn" --key="https://dl.yarnpkg.com/debian/pubkey.gpg" @@ -118,6 +117,7 @@ ynh_add_nginx_config ynh_script_progression --message="Configuring the app..." --weight=15 pushd $final_path + ynh_use_nodejs ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH yarn install #--production 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 yarn update-db