From 3f9d638388e72b5ad2b1b9dbec14e93d12e0e9f9 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 11 Feb 2019 16:23:29 +0100 Subject: [PATCH] Update install steps --- scripts/install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index c1d060b..091dd31 100644 --- a/scripts/install +++ b/scripts/install @@ -204,8 +204,10 @@ chown -R "$app":"$app" "$final_path" pushd $final_path ynh_use_nodejs - sudo -u $app env PATH=$PATH:$nodejs_path yarn install - sudo -u $app env PATH=$PATH:$nodejs_path npm run build + sudo -u $app env PATH=$PATH yarn cache clean + sudo -u $app env PATH=$PATH yarn --frozen-lockfile --non-interactive + sudo -u $app env PATH=$PATH yarn build + sudo -u $app env PATH=$PATH yarn --production --frozen-lockfile --non-interactive popd #=================================================