diff --git a/scripts/install b/scripts/install index 8991220..5434a36 100755 --- a/scripts/install +++ b/scripts/install @@ -89,9 +89,9 @@ ynh_script_progression --message="Deploying $app..." pushd "$install_dir" ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install moment-locales-webpack-plugin - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn install --production - ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH yarn run production + # ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install moment-locales-webpack-plugin + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production yarn install --production + ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV=production yarn run production ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan setup:production --force --email=$email --password=$password ynh_exec_warn_less ynh_exec_as $app php$phpversion artisan passport:client --password -n > key.txt mobile_id=$( cd $install_dir && tail -2 key.txt | head -1 | cut -c 12- )