From 5c1c99ebdff9c40d40806c3bb7c092326c9e5545 Mon Sep 17 00:00:00 2001 From: Vague Rabbit Date: Wed, 10 Feb 2021 02:36:32 -0800 Subject: [PATCH] ^ --- deploy-dashboard.sh | 2 ++ resources/saleor-dashboard/template.env | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy-dashboard.sh b/deploy-dashboard.sh index 6b6aa22..096ea84 100644 --- a/deploy-dashboard.sh +++ b/deploy-dashboard.sh @@ -78,6 +78,8 @@ fi # Install dependancies sudo -u $UN npm i wait +sudo -u $UN npm update +wait sudo -u $UN npm run build wait ######################################################################################### diff --git a/resources/saleor-dashboard/template.env b/resources/saleor-dashboard/template.env index 3f79f99..2760c3b 100644 --- a/resources/saleor-dashboard/template.env +++ b/resources/saleor-dashboard/template.env @@ -1,3 +1,4 @@ API_URI="{api_url}" APP_MOUNT_URI="/{app_mount_uri}/" -STATIC_URL="https://{app_host}/" \ No newline at end of file +STATIC_URL="https://{app_host}/" +NODE_OPTIONS=--max_old_space_size=1536 \ No newline at end of file