1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/outline_ynh.git synced 2024-09-03 19:56:12 +02:00

Update install

This commit is contained in:
Limezy 2023-02-18 23:16:50 +07:00
parent 6ebb61d73e
commit eae1e8fcd5

View file

@ -217,12 +217,14 @@ ynh_add_nginx_config
pushd "$final_path" pushd "$final_path"
ynh_use_nodejs ynh_use_nodejs
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))'
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH node --max_old_space_size=2500 -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))'
ynh_script_progression --message="Fetching Yarn production dependencies... This can be very long, be patient !" --weight=18 ynh_script_progression --message="Fetching Yarn production dependencies... This can be very long, be patient !" --weight=18
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --frozen-lockfile --network-timeout 1000000000 2>&1 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --max_old_space_size=2500 --frozen-lockfile --network-timeout 1000000000 2>&1
ynh_script_progression --message="Cleaning cache... " --weight=3 ynh_script_progression --message="Cleaning cache... " --weight=3
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean 2>&1 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean 2>&1
ynh_script_progression --message="Building... This can be very long, be patient !" --weight=18 ynh_script_progression --message="Building... This can be very long, be patient !" --weight=18
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build 2>&1 ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build --max_old_space_size=2500 2>&1
popd popd
#================================================= #=================================================