mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Fix: Try to fix = JavaScript heap out of memory
This commit is contained in:
parent
42d12bd9aa
commit
3bcb38dd46
3 changed files with 14 additions and 13 deletions
|
@ -11,7 +11,8 @@ auth_version="1.17.4"
|
||||||
api_gateway_version="1.24.0"
|
api_gateway_version="1.24.0"
|
||||||
extensions_version="2021.08.27"
|
extensions_version="2021.08.27"
|
||||||
|
|
||||||
swap_needed=1536
|
swap_needed=2048
|
||||||
|
node_max_old_space_size=6144
|
||||||
|
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
pkg_dependencies=""
|
pkg_dependencies=""
|
||||||
|
|
|
@ -208,18 +208,18 @@ ynh_script_progression --message="Installing Standard Notes - Syncing Server..."
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
pushd "$final_path/live/syncing-server-js"
|
pushd "$final_path/live/syncing-server-js"
|
||||||
ynh_print_info "Installing ... [1/3]"
|
ynh_print_info "Installing ... [1/3]"
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn build
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn build
|
||||||
popd
|
popd
|
||||||
pushd "$final_path/live/auth"
|
pushd "$final_path/live/auth"
|
||||||
ynh_print_info "Installing ... [2/3]"
|
ynh_print_info "Installing ... [2/3]"
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn build
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn build
|
||||||
popd
|
popd
|
||||||
pushd "$final_path/live/api-gateway"
|
pushd "$final_path/live/api-gateway"
|
||||||
ynh_print_info "Installing ... [3/3]"
|
ynh_print_info "Installing ... [3/3]"
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn build
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn build
|
||||||
popd
|
popd
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALLING Standard Notes - Extensions
|
# INSTALLING Standard Notes - Extensions
|
||||||
|
|
|
@ -410,24 +410,24 @@ then
|
||||||
if [[ "$syncing_server_js_version_installed" < "$syncing_server_js_version" ]]
|
if [[ "$syncing_server_js_version_installed" < "$syncing_server_js_version" ]]
|
||||||
then
|
then
|
||||||
pushd "$final_path/live/syncing-server-js"
|
pushd "$final_path/live/syncing-server-js"
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn build
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn build
|
||||||
popd
|
popd
|
||||||
ynh_app_setting_set --app=$app --key=syncing_server_js_version --value=$syncing_server_js_version
|
ynh_app_setting_set --app=$app --key=syncing_server_js_version --value=$syncing_server_js_version
|
||||||
fi
|
fi
|
||||||
if [[ "$auth_version_installed" < "$auth_version" ]]
|
if [[ "$auth_version_installed" < "$auth_version" ]]
|
||||||
then
|
then
|
||||||
pushd "$final_path/live/auth"
|
pushd "$final_path/live/auth"
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn build
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn build
|
||||||
popd
|
popd
|
||||||
ynh_app_setting_set --app=$app --key=auth_version --value=$auth_version
|
ynh_app_setting_set --app=$app --key=auth_version --value=$auth_version
|
||||||
fi
|
fi
|
||||||
if [[ "$api_gateway_version_installed" < "$api_gateway_version" ]]
|
if [[ "$api_gateway_version_installed" < "$api_gateway_version" ]]
|
||||||
then
|
then
|
||||||
pushd "$final_path/live/api-gateway"
|
pushd "$final_path/live/api-gateway"
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn install --pure-lockfile
|
||||||
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=4096" PATH=$ynh_node_load_PATH yarn build
|
ynh_exec_as $app env NODE_OPTIONS="--max-old-space-size=$node_max_old_space_size" PATH=$ynh_node_load_PATH yarn build
|
||||||
popd
|
popd
|
||||||
ynh_app_setting_set --app=$app --key=api_gateway_version --value=$api_gateway_version
|
ynh_app_setting_set --app=$app --key=api_gateway_version --value=$api_gateway_version
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue